Skip to content

Instantly share code, notes, and snippets.

View debugly's full-sized avatar
🚀
Working

Matt Reach debugly

🚀
Working
View GitHub Profile
@debugly
debugly /
Created February 17, 2016 05:54
学习编译器
* ARM: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0348bc/CIAJGAIH.html
* GNU: https://gcc.gnu.org/onlinedocs/gcc/index.html#Top
@debugly
debugly / 小技巧
Last active February 17, 2016 05:52
小技巧
* 剪切板: http://www.cnblogs.com/zhuqil/archive/2011/08/04/2127883.html
* 模糊效果 ios8: http://blog.csdn.net/hmt20130412/article/details/39930109, http://m.open-open.com/m/code/view/1428646042578
@debugly
debugly / scroll.md
Last active February 1, 2016 08:43
UIScroller 滑动时的状态转变

-1.用手拖动但是一直不离开scroller:

scrollViewWillBeginDragging:

停止拖动后:

scrollViewWillEndDragging:withVelocity:targetContentOffset:
scrollViewDidEndDragging:willDecelerate:
@debugly
debugly / PSPDFUIKitMainThreadGuard.m
Created January 29, 2016 09:06 — forked from steipete/PSPDFUIKitMainThreadGuard.m
This is a guard that tracks down UIKit access on threads other than main. This snippet is taken from the commercial iOS PDF framework http://pspdfkit.com, but relicensed under MIT. Works because a lot of calls internally call setNeedsDisplay or setNeedsLayout. Won't catch everything, but it's very lightweight and usually does the job.You might n…
// Taken from the commercial iOS PDF framework http://pspdfkit.com.
// Copyright (c) 2014 Peter Steinberger, PSPDFKit GmbH. All rights reserved.
// Licensed under MIT (http://opensource.org/licenses/MIT)
//
// You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it.
#import <objc/runtime.h>
#import <objc/message.h>
// Compile-time selector checks.
@debugly
debugly / iOS核心动画
Created January 23, 2016 04:53
创作自己的电子书可以使用 GitBook
我刚刚登陆了GitBook,就发现里面有好多文章,真是发现的够晚的啊,以后就有事情干啦:
https://www.gitbook.com/book/zsisme/ios-/details
@debugly
debugly / 20160123.md
Created January 23, 2016 04:35
Hello my Gist. It 's so cool...

北京,北京,我在这里迷惘,我在这里失去...

今天是近年来最冷的一天,我也在今天发现了Gist的美好,以后就在这里保存我的代码,记录我的点点滴滴了...

@debugly
debugly / 0_reuse_code.js
Last active January 23, 2016 04:31
这是什么?
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console