Python write reptiles, come and come, you can learn

PythonPython crawler, generally used for grasping specific content, recently wanted to learn to crawl through the network of what you want. The main function of case program: grab pictures from our campus network news.


IOS& design pattern builder mode (Builder)

The creation and representation of a complex object are separated, depending on the order of creation, and the manner of presentation is different. Such as when buying a mobile phone configuration: iPhote7, 64g, rose gold, you can choose a different configuration, but you do not know if he is achieved, but also because of the choice of different configurations, process and mobile phone production style is not the same. The user does not need to know how to implement, and only the final representation is chosen, which is the real-life builder model.


Masonry Studying

Masonry is a light-weight layout framework which wraps AutoLayout with a nicer syntax. Masonry has its own layout DSL which provides a chainable way of describing your NSLayoutConstraints which results in layout code that is more concise and readable. Masonry supports iOS and Mac OS X.

IB_DESIGNABLE and IBInspectable

From the beginning of Xcode 6, we can achieve real-time rendering of a custom view through the IB_DESIGNABLE and IBInspectable properties, the function is added in the code, you can directly view and modify custom view in Interface Builder, and run the program to see the view effect.

Log Energy Instruments

As far as life is concerned, the power of the mobile phone is an important lifeline for us. Generally speaking, when the electricity is less than 20%, our hearts are always so tight. As a developer, we should be saving the user’s mobile phone, allowing users a limited battery can be used longer, we developed APP, for users, developers of our scheme is the best of both worlds. Therefore, the APP power consumption should also be the point of performance optimization.


Xcode 8 Size Classes usage

Size Classes is a new feature introduced by Apple in iOS 8, which is used to adapt the UI interface of different device screens. In Xcode 8, some changes have been made in the way Interface Builder supports Size Classes, but the idea of Size Classes hasn’t changed.