某一刻,人便會感慨 人生中某些時間,忽然人會有些感慨。 岂能盡如人意,但愿無愧我心。 這無愧,於我是道德上的無愧。 Original post from my previous site: http://povoq.blogspot.com/2009/05/blog-post_11.html
力量 身寒不覺溫酒暖 更且沒有買洒錢 方原十里沙塵滾 遍地皆是來世人 今生情義不能報 血染回憶代你嚐 Original post from my previous site: http://povoq.blogspot.com/2009/03/by-matthew.html
Empower your welcome screen video with CIFilter > Many of us like our app look trendy. How to be "trendy"? Put a video on the welcome our signup screen is quite a good answer. I am going to share my small class to enable easy video looping and block style CIFilter applying.Before I share
Map Map Map better in Swift > Map function is quite a convenience method that often used in functional(mainly) programming. In Swift, all collection types(Array,Dictionary,Set...) support map. It take a closure that take element type from T and output type U then transform from [T] to [U]. -------------------------------------------------------------------------------- In most case, you
書單紙 書讀唔多,只講最正: Programming: * The Swift Programming Language 1,2,2.2 * Objective-C Programming Language 2.0 Edition * Seven Programming Language in Seven Week * Think functional * Functional Programming with Swift * C程序設計 * 三十日自制操作系統 * Code * Code complete(ing) * Zero to one (其實應該放落文化) * Algorithm及Structure類睇得好雜同散,亦都無一本本頭到尾咁睇,就費事講。 設計視覺: * 設計中的設計 * 明室攝影札記 * 論攝影 * 設計的界限 * 犬之記憶 * Another way
Modify Images of NSAttributeString Loaded From HTML in ease < div>Sometime we may want to load a html file and show it straightly on textview, fast and convenient. Also we might want to modify the images that automatically load from the tags (resize the image, filtering...). Some may suggest you to use a html parser and set
起角 你吹起號角,我們起程,成了一支無聲的軍隊。 面前有人倒下,我們仍沒發聲,繼續筆直向前。 腳下冷暖交接,平原漸作小丘,除腳步聲外只有號角聲。 我們繼續向前,號角越吹越響,最後,只剩下獨奏。 Original post from my previous site: http://povoq.blogspot.com/2010/06/blog-post.html
Promise in Swift Part-2 I will show you my implementation: let take = { (s:String) in let c = s print(s) } DispatchQueue.main.async { take("first call!") } // To make our following code cleaner, we delcare a alias here, and thanks to swift3.0, we can now use generic type here! typealias clr<
Promise in swift? Write your own What is Promise? To me, Promise is just to make async call in a linguistic representation for human read. Think about it: somethingAsync{ ok in use(ok) ... anotherAsync{ ok2 in ... } } It help when we can organise them into: when{ done in somethingAsync{ value in done(value) } } ==> (ok:{ value in