_(comments)
.head()
.pluck('examples')
.head()
.pluck('code')
.value()
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
$ cat test.js | |
import R from 'ramda'; | |
R.map( | |
function(f) | |
{ | |
return 2*f}, | |
[0,1,2]) |
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
$ time ied install babel-cli | |
real 0m14.378s | |
user 0m6.914s | |
sys 0m3.525s | |
$ time ied install babel-cli | |
real 0m1.020s | |
user 0m0.512s |
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
/* File: slate.example.js | |
* Author: lunixbochs (Ryan Hileman) | |
* Project: http://github.com/lunixbochs/reslate | |
*/ | |
S.src('.reslate.js'); | |
// enable to see debug messages in Console.app | |
// $.debug = true; | |
slate.alias('hyper', 'ctrl;alt;cmd'); |
I hereby claim:
- I am cab on github.
- I am connerbryan (https://keybase.io/connerbryan) on keybase.
- I have a public key ASDmFWDPqbBUjn7xWv1RMPSO1TVpbMVqV7X51NdnnmHF1wo
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
// where `A` is a type and `a` is an instance of that type | |
data = ( | |
(a, b, c), | |
(a, b), | |
(a, c, d), | |
(b, c, d, e), | |
(b, a), | |
(c, a, f, d), | |
(b, a, c) |
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
// where `A` is a type and `a` is an instance of that type | |
data = [ | |
(a, b, c), | |
(a, b), | |
(a, c, d), | |
(b, c, d, e), | |
(b, a), | |
(c, a, f, d), | |
(b, a, c) |
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
object tester extends Poly1 { | |
implicit def hlistCase[T <: HList](implicit mapper : Mapper[tester.type, T]) = at[T](x => { | |
testMap(x) | |
}) | |
implicit def anyCase[T] = at[T](x => 1) | |
} | |
def testMap[T <: HList](t: T)(implicit mapper : Mapper[tester.type, T]) = t.map(tester) | |
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
#! /usr/bin/env node | |
var execFile = require('child_process').execFileSync; | |
var filters = [ | |
function replaceMasterWithMaester(word) { | |
if(word === "maester") { | |
return "master"; | |
} | |
}, |
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
from PyPDF2 import PdfFileWriter, PdfFileReader | |
import sys | |
original_name = sys.argv[1] | |
min_spread_width = int(sys.argv[2]) | |
original = PdfFileReader(open(original_name, 'rb')) | |
output = PdfFileWriter() | |
def getBoxSize(box): |