start new:
tmux
start new with session name:
tmux new -s myname
| tell application "Notes" | |
| set theNotes to every note of the folder "Notes" | |
| repeat with thisNote in theNotes | |
| set myTitle to the name of thisNote | |
| set myText to the body of thisNote | |
| set myCreateDate to the creation date of thisNote | |
| set myUpdateDate to the modification date of thisNote | |
| tell application "Evernote" | |
| set theTransferredNote to create note with html myText ¬ | |
| title myTitle ¬ |
NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths
Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
| function ls --description 'List contents of directory' | |
| command ls -lFG $argv | |
| end | |
| function subl --description 'Launches sublime text in a new window' | |
| command subl -n $argv | |
| end | |
| function code --description 'Launches visual code studio in a new window' | |
| command code -n $argv |
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.
| map = -> f { | |
| -> rf { | |
| -> acc, elem { | |
| rf[acc, f[elem]] | |
| } | |
| } | |
| } | |
| square = -> n { n**2 } | |
| add = -> acc, n { acc + n } |
| { | |
| "presets": ["es2015", "react", "babel-preset-stage-0"] | |
| } |
| function createStore (reducers) { | |
| var state = reducers() | |
| const store = { | |
| dispatch: (action) => { | |
| state = reducers(state, action) | |
| }, | |
| getState: () => { | |
| return state | |
| } | |
| } |