Skip to content

Instantly share code, notes, and snippets.

@geofffilippitwc
geofffilippitwc / readme.md
Last active December 11, 2015 00:09 — forked from wilmoore/readme.md

UMD-Inspired JS Module Boilerplate

This is the module format you don't know you need until you need it. Write your module once and have it work in a CJS/NodeJs, AMD, or Browser Global environment.

Best Used When...

  • You are migrating from namespaced (err, globals) code to either AMD or CJS modules or both.
  • You can't yet factor out browser globals but also need to test your code via NodeJS (e.g. Mocha)

Benefits & Trade-offs

@geofffilippitwc
geofffilippitwc / vimcheatsheet.md
Last active December 13, 2015 20:28
Vim features I'd like to use more often.

#Shell :r !command

#Navigation gg

#Folding zi za zj zk :FoldToggle zc zM zv zR

#Terminal tabs

@geofffilippitwc
geofffilippitwc / MacKeyboardShortcuts.md
Last active December 14, 2015 11:39
Mac keyboard shortcuts I want to use more

#Screenshots Command-Shift-4 space click a window

#Power Management Shift-Control-Eject

@geofffilippitwc
geofffilippitwc / iterm2cheatsheet.md
Last active December 14, 2015 12:48
iTerm2 and tmux keyboard shortcuts I'd like to use more

#Tabs and windows Ctrl-tab Command-2 Command-option-1 Command-/ Command-d Command-option-arrow

#Autocomplete Command-;

#Quick Term Command-i

#Paste

CTRL-r recall previous commands by searching for them

CTRL-t transpose (swap) the two characters before the cursor with one another

ESC-t transpose (swap) the two words before the cursor with one another

CTRL-y paste the most previously-deleted string. Basically a sort of command-line editting “undo”

CTRL-z stop the current process and send it to the background

@geofffilippitwc
geofffilippitwc / browserCheatSheet.md
Last active December 15, 2015 22:39
Browser Keyboard Shortcuts I Want to Use More

#Safari Command-l Command-Option-f Command-d Option-Command-u

tabs

Command-Shift-[ Command-Shift-]

about

  • Chrome about:flags
  • Firefox about:config
@geofffilippitwc
geofffilippitwc / tmuxcheatsheet.md
Last active December 17, 2015 16:49
tmux commands I'd like to use more

Copy

Control-b [ space enter Control-b ]

Session

attach list

Keybindings

Control-b ?

Languages Represented

  • Scala

    • PRO: First class currying and concise syntax.
    • CON: JVM...no thanks.
  • Ruby

  • PRO: The most beautiful language ever + Enumerable standard library module.