F# | C# | Scala | Clojure | Python | Ruby | Haskell | SQL | OCaml | Common Lisp | Erlang | Smalltalk | Scheme | Ecmascript 5 | Perl 5 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
map | Select | map | map | map | collect | map | Select | map | mapcar | map | collect: | map | map | map |
filter | Where | filter | filter | filter | select | filter | Where | filter | remove-if-not | filter | select: | filter | filter | grep |
fold | Aggregate | foldLeft | reduce | reduce | inject | foldl |
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 -i https://api.github.com/repos/scrooloose/nerdtree/forks |grep -e "git_url" |awk '{gsub(/,/,"");split($2,a,"/"); system("mkdir "a[4]"; cd "a[4]"; git clone " $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
;; You do have Clojurescript, right? | |
;; First Install NodeJS | |
;; Then install npm (node package manager) | |
;; Then install Commander.js https://github.com/visionmedia/commander.js | |
$ cljsc src/cljs-demo/pizza.cljs '{:optimizations :simple :pretty-print true :target :nodejs}' > pizza.js | |
$ ./pizza.js --help | |
Usage: pizza.js [options] | |
Options: |
http://pedestal.io/guides/pedestal-with-component
lein new pedestal-service tnbsst
all pedestal deps already scaffoled, using jetty for this demo
This is my dot-file, therefore it’s prone to have broken-ness in it. I’m trying to clean it up and make sure it’s sane.
- escreen is nice, but i have to init it each time and set it up to use it… i’d like a working revive+ config, but I haven’t gotten it working correctly yet. see my twittering section for an example of how i use excreen
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 echo '{:foo :bar}' |./bin/clack :foo | |
:bar | |
echo '{:foo :bar}' 0.00s user 0.00s system 0% cpu 0.002 total | |
./bin/clack :foo 2.54s user 0.19s system 104% cpu 2.619 total | |
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 bash | |
C="0" # count | |
while [ $C -lt 30 ] | |
do | |
case "$(($C % 11))" in | |
0) char="\xF0\x9F\x95\x90" | |
;; | |
1) char="\xF0\x9F\x95\x91" | |
;; |
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
package org.vertx.java.examples.echo; | |
import org.vertx.java.core.Handler; | |
import org.vertx.java.core.net.NetSocket; | |
import org.vertx.java.core.streams.Pump; | |
import org.vertx.java.deploy.Verticle; | |
public class EchoServer extends Verticle { | |
public void start() { |
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
<?xml version="1.0" encoding="iso-8859-1"?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" | |
lang="en" xml:lang="en"> | |
<head> | |
<title>Clojure</title> | |
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/> | |
<meta name="generator" content="Org-mode"/> | |
<meta name="generated" content="2012-06-07 23:17:36 EDT"/> |
NewerOlder