Skip to content

Instantly share code, notes, and snippets.

Eric Moritz ericmoritz

Block or report user

Report or block ericmoritz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ericmoritz
ericmoritz / eam.json
Created Jan 18, 2019
QMK Firmware JSON
View eam.json
{
"keyboard": "iris/rev2",
"keymap": "eam",
"layout": "LAYOUT",
"layers": [
[
"KC_ESC",
"KC_LGUI",
"KC_LCTL",
"KC_LSFT",
View main.rs
extern crate failure;
#[macro_use]
extern crate failure_derive;
use std::process;
use std::io::{self, Read};
use failure::Error;
#[derive(Debug, Fail)]
View 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 whose fingerprint is F908 1749 3371 74DB 3811 1AA8 D500 8CCC E761 725F

To claim this, I am signing this object:

View 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:

View 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:

View express-fantasy.es6
/* -*- 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
View add.es
export const add = x => y =>
x + y
console.log(
add(1)(2)
)
console.log(
[1, 2, 3].map(add(1))
)
View chef-solo-bootstrap.sh
curl -L https://www.opscode.com/chef/install.sh | bash
View example.sparql
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 .
}
You can’t perform that action at this time.