Skip to content

Instantly share code, notes, and snippets.

@ericmoritz
ericmoritz / eam.json
Created January 18, 2019 01:17
QMK Firmware JSON
{
"keyboard": "iris/rev2",
"keymap": "eam",
"layout": "LAYOUT",
"layers": [
[
"KC_ESC",
"KC_LGUI",
"KC_LCTL",
"KC_LSFT",
@ericmoritz
ericmoritz / main.rs
Last active February 19, 2018 17:21
extern crate failure;
#[macro_use]
extern crate failure_derive;
use std::process;
use std::io::{self, Read};
use failure::Error;
#[derive(Debug, Fail)]

Keybase proof

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:

@ericmoritz
ericmoritz / keybase.md
Created January 10, 2017 15:00
keybase.md

Keybase proof

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:

Keybase proof

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:

/* -*- 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
export const add = x => y =>
x + y
console.log(
add(1)(2)
)
console.log(
[1, 2, 3].map(add(1))
)
curl -L https://www.opscode.com/chef/install.sh | bash
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 .
}