(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
function( | |
a, // a object holding test functions | |
b, // a logging function, taking multiple arguments | |
c, // placeholder | |
d, // placeholder | |
e, // placeholder | |
f // placeholder | |
){ | |
c = d = e = 0; // initialize asserts, failures and exception counts to 0 | |
for ( // iterate |
-- Can be executed from Terminal using "osascript safari_cache_clean.scpt" | |
-- inspired by http://www.macuser.de/forum/f30/safari-alle-cache-544226/ | |
set appname to "Safari" | |
if appIsRunning(appname) then | |
set started to true | |
-- Quit App | |
tell application appname to quit | |
else |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Recommendations of unit types per media type:
Media | Recommended | Occasional use | Infrequent use | Not recommended |
---|---|---|---|---|
Screen | em, rem, % | px | ch, ex, vw, vh, vmin, vmax | cm, mm, in, pt, pc |
em, rem, % | cm, mm, in, pt, pc | ch, ex | px, vw, vh, vmin, vmax |
import Image | |
import photos | |
import console | |
import ImageOps | |
# Pick screenshots to combine | |
screenshot1 = photos.pick_image(show_albums=True) | |
screenshot2 = photos.pick_image(show_albums=True) | |
screenshot3 = photos.pick_image(show_albums=True) |
#!/usr/bin/env bash | |
# | |
# Bootstrap script for setting up a new OSX machine | |
# | |
# This should be idempotent so it can be run multiple times. | |
# | |
# Some apps don't have a cask and so still need to be installed by hand. These | |
# include: | |
# | |
# - Twitter (app store) |
# coding: utf-8 | |
import sys | |
import html2text | |
import clipboard | |
import webbrowser | |
webpage = clipboard.get() | |
text = sys.argv[1] |
void callEntryPointOfImage(char *path, int argc, char **argv) | |
{ | |
void *handle; | |
int (*binary_main)(int binary_argc, char **binary_argv); | |
char *error; | |
int err = 0; | |
printf("Loading %s…\n", path); | |
handle = dlopen (path, RTLD_LAZY); |
// Vanilla version of FitVids | |
// Still licencened under WTFPL | |
// | |
// Not as robust and fault tolerant as the jQuery version. | |
// It's BYOCSS. | |
// And also, I don't support this at all whatsoever. | |
;(function(window, document, undefined) { | |
'use strict'; | |