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
[ ( "path", 123 ) | |
, ( "value", Nothing ) | |
] |
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
positiveSum :: [Int] -> Int | |
positiveSum a = | |
let | |
positives = filter (>0) a | |
in | |
foldl (+) 0 positives | |
# …OR… | |
positiveSum :: [Int] -> Int |
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
#!/bin/bash | |
## | |
# This script creates a new release by reading from VERSION file. | |
## | |
set -e # Exit on error | |
set +x # Debug mode (-x on, +x off) | |
version="$(cat VERSION)" |
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
npm ERR! Linux 4.0.9-boot2docker | |
npm ERR! argv "/usr/local/nodejs/bin/node" "/usr/local/nodejs/bin/npm" "install" | |
npm ERR! node v4.2.1 | |
npm ERR! npm v2.14.7 | |
npm ERR! code ECONNRESET | |
npm ERR! errno ECONNRESET | |
npm ERR! syscall read | |
npm ERR! network read ECONNRESET | |
npm ERR! network This is most likely not a problem with npm itself |
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
echo this is a test, then. | ./bin/post-build.sh --this that --then doo | |
that is a test, doo. |
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
root@cc4cb3a931ad:/usr/local/src/orientdb# ./bin/console.sh | |
OrientDB console v.2.0.12 (build UNKNOWN@r; 2015-07-01 11:28:05+0000) www.orientechnologies.com | |
Type 'help' to display all the supported commands. | |
2015-07-20 15:36:35:427 WARNING Not enough physical memory available for DISKCACHE: 2,001MB (heap=455MB). Set lower Maximum Heap (-Xmx setting on JVM) and restart OrientDB. Now running with DISKCACHE=256MB [orientechnologies] | |
Installing extensions for GREMLIN language v.2.6.0 | |
orientdb> help | |
AVAILABLE COMMANDS: |
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 http://localhost:8080/ >> index.html # append the contents to index.html file |
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
%div{'ng-controller' => 'FooCtrl as foo'} | |
this is the content | |
%button{'ng-click' => 'foo.bar()'} Call bar() | |
%div{'ng-repeat' => 'report in foo.reports'} | |
this is one report: {{ report.reference }} {{ report.bar }} |
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
function createAndDispatchEvent(eventName, target) { | |
var e = document.createEvent("HTMLEvents"); | |
e.initEvent(eventName, true, true); | |
target.dispatchEvent(e); | |
} |
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
let foo = 'bar'; | |
let fn = () => "baz"; | |
console.log(foo); | |
console.log(fn()); | |
let log = msg => console.log(msg) | |
log(foo); |