This file contains 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
{ | |
"keyboard": "iris/rev2", | |
"keymap": "eam", | |
"layout": "LAYOUT", | |
"layers": [ | |
[ | |
"KC_ESC", | |
"KC_LGUI", | |
"KC_LCTL", | |
"KC_LSFT", |
This file contains 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
extern crate failure; | |
#[macro_use] | |
extern crate failure_derive; | |
use std::process; | |
use std::io::{self, Read}; | |
use failure::Error; | |
#[derive(Debug, Fail)] |
I hereby claim:
- I am ericmoritz on github.
- I am ericmoritz (https://keybase.io/ericmoritz) on keybase.
- I have a public key whose fingerprint is F908 1749 3371 74DB 3811 1AA8 D500 8CCC E761 725F
To claim this, I am signing this object:
I hereby claim:
- I am ericmoritz on github.
- I am ericmoritz (https://keybase.io/ericmoritz) on keybase.
- I have a public key ASBTGiXyjPdJuyILRRS9xtR-TiE7BYf0IhotWf_h5LvimAo
To claim this, I am signing this object:
I hereby claim:
- I am ericmoritz on github.
- I am ericmoritz (https://keybase.io/ericmoritz) on keybase.
- I have a public key ASBTGiXyjPdJuyILRRS9xtR-TiE7BYf0IhotWf_h5LvimAo
To claim this, I am signing this object:
This file contains 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
/* -*- mode: javascript -*- */ | |
import {Left, Right} from 'fantasy-eithers' | |
import {Some, None} from 'fantasy-options' | |
const isPromise = v => v !== null && typeof v === 'object' && typeof v.then === 'function' | |
export default (cb) => (req, res) => { | |
let handler = (data) => { | |
if(isPromise(data)) { | |
// If the data is a promise, then bind the handler |
This file contains 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
export const add = x => y => | |
x + y | |
console.log( | |
add(1)(2) | |
) | |
console.log( | |
[1, 2, 3].map(add(1)) | |
) |
This file contains 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
curl -L https://www.opscode.com/chef/install.sh | bash |
This file contains 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
PREFIX foaf: <http://xmlns.com/foaf/0.1/> | |
PREFIX doap: <http://usefulinc.com/ns/doap#> | |
SELECT ?project ?maintainer WHERE { | |
?p doap:name ?project . | |
?p doap:maintainer ?m . | |
?m foaf:name ?maintainer . | |
} |
NewerOlder