This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // CAMediaTimingFunction+GMTimingBlock.h | |
| // | |
| // Created by George MacKerron on 2015/06/11. | |
| // Copyright (c) 2015 George MacKerron. All rights reserved. | |
| // | |
| #import <QuartzCore/QuartzCore.h> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # tested against OS X cksum: `echo -n 'hello' | cksum -o 3` == "hello".crc32() | |
| String.CRC32Table = # ref: http://www.w3.org/TR/PNG/#D-CRCAppendix | |
| for c in [0..255] # (can clobber c with impunity below thanks to CoffeeScript) | |
| for k in [0..7] | |
| c = if c & 1 then 0xedb88320 ^ (c >>> 1) else (c >>> 1) | |
| c >>> 0 | |
| String::crc32 = (crc = 0xffffffff) -> | |
| for i in [0...@length] by 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @interface AlignmentRectRespectingSlider : UISlider | |
| @end |
NewerOlder