Function | Shortcut |
---|---|
Previous Tab | ⌘ + Left Arrow |
Next Tab | ⌘ + Right Arrow |
Go to Tab | ⌘ + Number |
Go to Window | ⌘ + Option + Number |
Go to Split Pane by Direction | ⌘ + Option + Arrow |
Go to Split Pane by Order of Use | ⌘ + ] , ⌘ + [ |
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
To have launchd start postgresql at login: | |
mkdir -p ~/Library/LaunchAgents | |
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents | |
Then to load postgresql now: | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist |
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
[ | |
{"keys": ["super+shift+r"], "command": "reindent" , "args": {"single_line": false}}, | |
{ "keys": ["super+v"], "command": "paste_and_indent" }, | |
{ "keys": ["super+shift+v"], "command": "paste" }, | |
{ "keys": ["alt+."], "command": "reveal_in_side_bar" }, | |
{ "keys": ["ctrl+0"], "command": "focus_side_bar" }, | |
{ "keys": ["super+k", "super+f"], "command": "focus_side_bar" } | |
] |
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
def _render_with_renderer_json(json, options) | |
serializer = build_json_serializer(json, options) | |
if serializer | |
super(serializer, options) | |
else | |
super(json, options) | |
end | |
end |
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 TrainedWarrior | |
attr_accessor :fledgling | |
def initialize(warrior) | |
@fledgling = warrior | |
end | |
def method_missing(name, *args) | |
if fledgling.respond_to?(name) |
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
sv_cheats 1; | |
mp_limitteams 0; | |
mp_autoteambalance 0; | |
mp_roundtime 60; | |
mp_roundtime_defuse 60; | |
mp_maxmoney 60000; | |
mp_startmoney 60000; | |
mp_freezetime 0; | |
mp_buytime 9999; | |
mp_buy_anywhere 1; |
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
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
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
require 'open-uri' | |
require 'nokogirl' | |
url = "http://www.oreilly.com/data/free/archive.html?imm_mid=0e7547&cmp=em-data-free-na-stny16_nem4_end_summer" | |
page = Nokogiri::HTML(open(url)) | |
book_links = page.css('a[data-toggle="popover"]').href | |
download_links = book_links.map { |book_link| get_download_link(book_link) } |
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
t = [1,1,2,2,3] | |
f = fn(n) -> | |
IO.puts("starting #{n}") | |
:timer.sleep(n * 1000) | |
IO.puts("finishing #{n}") | |
n | |
end | |
tasks = Enum.map(t, fn(n) -> |
I hereby claim:
- I am mmartinson on github.
- I am mikemartinson (https://keybase.io/mikemartinson) on keybase.
- I have a public key ASDc4J01zZYB3bhj5Hn7JcrT8tPeSqabuXENCyl_hnsWTgo
To claim this, I am signing this object:
OlderNewer