start new:
tmux
start new with session name:
tmux new -s myname
| #!/bin/bash | |
| pipe=/home/shairport/metadata/now_playing | |
| datafile=$pipe.json | |
| stringify() { | |
| a=${1%%=*} | |
| b=${1##*=} | |
| echo "\"$a\": \"$b\"" | |
| } |
| /** | |
| * the HTML5 autofocus property can be finicky when it comes to dynamically loaded | |
| * templates and such with AngularJS. Use this simple directive to | |
| * tame this beast once and for all. | |
| * | |
| * Usage: | |
| * <input type="text" autofocus> | |
| * | |
| * License: MIT | |
| */ |
I'm definitely not looking for work. However to provide some helpful guidance for hiring like-minded engineers, I would only consider working for a company if it met these requirements:
| ; | |
| ; Global Editor Config for Adaptive Labbers | |
| ; | |
| ; This is an ini style configuration. See http://editorconfig.org/ for more information on this file. | |
| ; | |
| ; Top level editor config. | |
| root = true | |
| ; Always use Unix style new lines with new line ending on every file and trim whitespace | |
| [*] | |
| end_of_line = lf |
NOTE: This guide has moved to https://github.com/bpierre/switch-to-vim-for-good
This guide is coming from an email I used to send to newcomers to Vim. It is not intended to be a complete guide, it is about how I switched myself.
My decision to switch to Vim has been made a long time ago. Coming from TextMate 1, I wanted to learn an editor that is Open Source (so I don’t lose my time learning a tool that can be killed), cross platform (so I can use it everywhere), and powerful enough (so I won’t regret TextMate). For these reasons, Vim has always been the editor I wanted to learn, but it took me several years before I did it in a way that works for me. I tried to switch progressively, using the Janus Vim distribution for a few months, then got back to using TextMate 2 for a time, waiting for the next attempt… here is what finally worked for me.
Original gist with comments: https://gist.github.com/bpierre/0a0025d348b6001394e0
Install homebrew then run brew install swi-prolog.
You can now run the Prolog shell from the command line with swipl.
Important: do not install from the official website, you will get crashes.
| #!/usr/bin/env python | |
| """ Short description of this Python module. | |
| Longer description of this module. | |
| This program is free software: you can redistribute it and/or modify it under | |
| the terms of the GNU General Public License as published by the Free Software | |
| Foundation, either version 3 of the License, or (at your option) any later | |
| version. |
| SPC | |
| SPC: find file | |
| , switch buffer | |
| . browse files | |
| : MX | |
| ; EX | |
| < switch buffer | |
| ` eval | |
| u universal arg | |
| x pop up scratch |