View gist:0afef1fe2bbd701de6ff
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
alias ls='ls --tabsize=0 --literal --show-control-chars --color=always --human-readable' | |
alias grep='grep --color=auto' | |
alias cp='cp --interactive' | |
alias mv='mv --interactive' | |
alias rm='rm --interactive' | |
alias ll='ls -lhX' | |
alias la='ls -lAhX' | |
alias l='ll -S' | |
alias less='less --quiet' | |
alias df='df --human-readable' |
View gist:f6304367a8625d800067
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
<Response> | |
<Dial callerId="18004321321"> | |
<Number>16184021401</Number> | |
</Dial> | |
</Response> |
View gruntfile.js
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
module.exports = function(grunt) { | |
"use strict"; | |
grunt.initConfig({ | |
psc: { | |
options: { | |
main: "Mymodule.Main", | |
modules: ["Mymodule.Main"] | |
}, |
View purescript-alert
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
module FFI.Test where | |
import Control.Monad.Eff | |
import Debug.Trace | |
foreign import data Alert :: ! | |
foreign import alert | |
"function alert(s) { \ | |
\ return function() { \ |
View gist:8031034
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
102 | |
103 server { | |
104 listen 80; | |
105 server_name bookmarking.curtis.io; | |
106 | |
107 location / { | |
108 expires 24h; | |
109 proxy_pass http://localhost:3000/; | |
110 sendfile on; | |
111 proxy_redirect off; |
View tmp.clj
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
... | |
(defroutes basic-routes | |
(GET "/" [] (str "<a href=\"/test\">test</a>")) | |
(GET "/test" [] (friend/authenticated (home/index)))) | |
(defroutes all-routes | |
basic-routes | |
<other routes>) | |
View car.cpp
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
class Car { | |
private: | |
void top () { | |
printf(" ________________________"); | |
printf(" / | \\"); | |
printf(" / | \\"); | |
printf(" / | \\"); |
View kibit.clj
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
(ns kibbittest.core) | |
(if true | |
::test | |
nil) | |
=== | |
Consider using: | |
(when true :user/test) |
View recur.clj
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
(defn naive-sum [n] | |
(if (= n 0) | |
0 | |
(+ n (naive-sum (dec n))))) | |
(defn recur-sum [n] | |
(loop [acc 0 | |
cnt n] | |
(if (= cnt 0) | |
acc |
View gist:3172590
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
bash "restart storm processes" do | |
action :nothing | |
code <<-EOH | |
echo "Restarting storm processes" | |
jps | grep "worker\|supervisor" | awk '{print $1}' | xargs kill | |
EOH | |
end |
NewerOlder