- assembler
- bash
- BASIC
- C
- C++
- Dylan (aka Ralph)
- HyperTalk
- Java
- JavaScript
- Lisp
This file contains hidden or 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/local/bin/fish | |
| if test -n "$HOME" ; | |
| set -xg NIX_LINK "$HOME/.nix-profile" | |
| # Set the default profile. | |
| if not test -L "$NIX_LINK" ; | |
| echo "creating $NIX_LINK" >&2 | |
| set -l _NIX_DEF_LINK /nix/var/nix/profiles/default | |
| /nix/store/cdybb3hbbxf6k84c165075y7vkv24vm2-coreutils-8.23/bin/ln -s "$_NIX_DEF_LINK" "$NIX_LINK" | |
| end |
This file contains hidden or 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
| case point | |
| pattern (x, y): ... # 2d point | |
| pattern (x, y, z): ... # 3d point | |
| pattern (x, y, z, w): ... # quaternion | |
| # etc. |
This file contains hidden or 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
| sealed abstract class Expression | |
| case class X() extends Expression | |
| case class Const(value : Int) extends Expression | |
| case class Add(left : Expression, right : Expression) extends Expression | |
| case class Mult(left : Expression, right : Expression) extends Expression | |
| case class Neg(expr : Expression) extends Expression | |
| def eval(e : Expression, x : Int) : Int = e match { | |
| case X() => x | |
| case Const(c) => c |
This file contains hidden or 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
| beach(Temperature) -> | |
| case Temperature of | |
| {celsius, N} when N >= 20, N =< 45 -> | |
| 'favorable'; | |
| {kelvin, N} when N >= 293, N =< 318 -> | |
| 'scientifically favorable'; | |
| {fahrenheit, N} when N >= 68, N =< 113 -> | |
| 'favorable in the US'; | |
| _ -> | |
| 'avoid beach' |
I hereby claim:
- I am jc00ke on github.
- I am jc00ke (https://keybase.io/jc00ke) on keybase.
- I have a public key whose fingerprint is 820A 5BE1 B38C 55E5 1C2C A163 FA06 5807 F03A B48B
To claim this, I am signing this object:
This runs a build for a small elixir (phoenix) project in about 40 seconds by caching as much of the compiled files as possible.
We've been using this for months in multiple projects without any issues. Please ping be if there is any issues with this script and I'll update it.
It should be generic enough to work on any elixir app using mix.
If you have a elixir_buildpack.config, then enable that section in the build script to keep versions in sync!
2016-08-09: Updated to newer Erlang and Elixir and fixed curl command.
This file contains hidden or 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/sh | |
| # Cisco Anyconnect CSD wrapper for OpenConnect | |
| CSTUB="$HOME/.cisco/hostscan/bin/cstub" | |
| $ARCH=$(uname -m) | |
| if [[ "$ARCH" == "x86_64" ]] | |
| then |
This file contains hidden or 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
| #compdef tmuxinator mux | |
| # zsh completion for tmuxinator | |
| # Install: | |
| # $ mkdir -p ~/.tmuxinator/completion | |
| # $ cp _tmuxinator ~/.tmuxinator/completion | |
| # $ vi ~/.zshrc # add the following codes | |
| # fpath=($HOME/.tmuxinator/completion ${fpath}) | |
| # autoload -U compinit |
This file contains hidden or 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
| This tool is used to compare microbenchmarks across two versions of code. It's | |
| paranoid about nulling out timing error, so the numbers should be meaningful. | |
| It runs the benchmarks many times, scaling the iterations up if the benchmark | |
| is extremely short, and it nulls out its own timing overhead while doing so. It | |
| reports results graphically with a text interface in the terminal. | |
| You first run it with --record, which generates a JSON dotfile with runtimes | |
| for each of your benchmarks. Then you change the code and run again with | |
| --compare, which re-runs and generates comparison plots between your recorded | |
| and current times. In the example output, I did a --record on the master |