Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| i386 : iPhone Simulator | |
| x86_64 : iPhone Simulator | |
| arm64 : iPhone Simulator | |
| iPhone1,1 : iPhone | |
| iPhone1,2 : iPhone 3G | |
| iPhone2,1 : iPhone 3GS | |
| iPhone3,1 : iPhone 4 | |
| iPhone3,2 : iPhone 4 GSM Rev A | |
| iPhone3,3 : iPhone 4 CDMA | |
| iPhone4,1 : iPhone 4S |
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| /** | |
| * Draw SVG in canvas | |
| */ |
| // | |
| // RSTimingFunction.h | |
| // | |
| // Created by Raphael Schaad on 2013-09-28. | |
| // This is free and unencumbered software released into the public domain. | |
| // | |
| #import <UIKit/UIKit.h> |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
| var Base64 = (function () { | |
| var ALPHA = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; | |
| var Base64 = function () {}; | |
| var _encode = function (value) { | |
| if (typeof(value) !== 'number') { | |
| throw 'Value is not number!'; |
| // To unzip the epub, move the ePub to a folder, cd to it then simply: | |
| unzip MyEbook.epub | |
| // To zip up an epub: | |
| 1. zip -X MyNewEbook.epub mimetype | |
| 2. zip -rg MyNewEbook.epub META-INF -x \*.DS_Store | |
| 3. zip -rg MyNewEbook.epub OEBPS -x \*.DS_Store | |
| Some explanations necessary here. We start each line with two flags: |
| infix operator >>= { | |
| associativity left | |
| precedence 160 | |
| } | |
| func >>=<S: SequenceType, T>(source: S, transform: S.Generator.Element -> [T]) -> [T] { | |
| return flatMap(source, transform) | |
| } | |
| func >>=<C : CollectionType, T>(source: C, transform: (C.Generator.Element) -> [T]) -> [T] { | |
| return flatMap(source, transform) |
| var Util = { | |
| toBinary: function(input) { | |
| var result = ""; | |
| for (var i = 0; i < input.length; i++) { | |
| var bin = input[i].charCodeAt().toString(2); | |
| result += Array(8 - bin.length + 1).join("0") + bin; | |
| } | |
| return result; | |
| }, |
| /************************************************** | |
| * μμλ ₯ κ³μ° λΌμ΄λΈλ¬λ¦¬ -- Library file for Korean Lunar Calendar | |
| * by Senarin | |
| **************************************************/ | |
| var DAY0000=1721424.5; // 0000/12/31 | |
| var SOLAR_EPOCH=1721425.5; // 0001/1/1 | |
| var YEAR_MIN=1583; // Min. Year | |
| var YEAR_MAX=2100; // Max. Year | |
| var LUNAR_EPOCH=2299261.5; | |
| var LOWER_LIMIT=LUNAR_EPOCH; |