View curried.es6.js
function curried(fn) {
function curry(prevArgs) {
return function (...inArgs) {
const args = prevArgs.concat(inArgs);
if (args.length >= fn.length) {
return fn(...args);
}
return curry(args);
};
}
View editor.md

Simplest

data:text/html,<body contenteditable>

Monospace font, spell checking off

data:text/html,<body spellcheck=false style="font: 16px monospace" contenteditable>

URL updates as you type

View keybase.md

Keybase proof

I hereby claim:

  • I am sidnicious on github.
  • I am potato (https://keybase.io/potato) on keybase.
  • I have a public key is ASDTX2oyybeG_W9qAeEabhkPoS6z4CVGI57aXU1u_TGzxAo

To claim this, I am signing this object:

View keybase.md

Keybase proof

I hereby claim:

  • I am Sidnicious on github.
  • I am potato (https://keybase.io/potato) on keybase.
  • I have a public key whose fingerprint is 1CD3 2E3C 469D 0CBB 4DE8 AE50 60C7 152C 5E2C D5CE

To claim this, I am signing this object:

View AppDefault.swift
enum AppDefault {
case APIServer, RunMode, HomeDirectory, ReactHost
var stringValue: String? {
get {
return NSUserDefaults.standardUserDefaults().stringForKey(String(self))
}
nonmutating set {
if let newValue = newValue {
View ratelimiter.coffee
class RateLimiter
constructor : (@max, @interval) ->
@table = {}
hit : (key) ->
now = +new Date
if (hits = @table[key])?
if hits.length is @max
return false
View example.iced
miniled = require 'miniled'
sign = miniled.signs()[0]
await sign.open defer()
sign.set 'Hello, world!'
View delay.swift
func delay(interval: NSTimeInterval) -> Promise<()> {
return Promise<()> { resolve, reject in
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, Int64(interval * NSTimeInterval(NSEC_PER_SEC))), dispatch_get_main_queue(), resolve)
}
}
View gist:5d19ba0ab24862cbdcb4
http://www.holeintheceiling.com/blog/2012/08/14/mountain-lion-and-ssh/