Mikko Lehtinen mikkolehtinen

View terminal_shortcuts.txt
1 2 3 4 5 6 7 8 9 10
CTRL+a
Move cursor to beginning of the line. (I think of this as anchoring my cursor to the start.)
 
CTRL+e
Move cursor to the end of the line.
 
CTRL+k
Delete everything from under the cursor to the end of the line. (I think of this as killing the rest of my line.)
 
CTRL+f
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

View .gitconfig
1 2 3 4 5 6 7 8 9 10
[user]
name = Mikko Lehtinen
email = m@m.com
 
[alias]
st = status
stb = status -sb
co = checkout
promote = !$ZSH/bin/git-promote
wtf = !$ZSH/bin/git-wtf
View gist:3512434

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
View gist:3083602
1 2 3 4 5 6 7 8 9 10
# build output dirs
BUILD_DIR = build
JS_BUILD_DIR = $(BUILD_DIR)/js
CSS_BUILD_DIR = $(BUILD_DIR)/css
IMG_BUILD_DIR = $(BUILD_DIR)/img
VENDOR_BUILD_DIR = $(BUILD_DIR)/vendor
TESTS_BUILD_DIR = test/build
 
# sources
TEMPLATES = $(shell find app -name '*.hbs')
View base_view.coffee
1 2 3 4 5 6 7 8 9
define [
'underscore'
'chaplin/views/view'
'app/views/base_extensions'
], (_, ChaplinView, BaseExtensions) ->
 
class BaseView extends ChaplinView
 
_(@prototype).extend BaseExtensions
View base_mixin.coffee
1 2 3 4 5 6 7 8 9 10
define [
'chaplin'
'Handlebars'
], (Chaplin, Handlebars) ->
 
'use strict'
 
BaseExtensions =
trackAction: (category, action, label, value) ->
# track user action with Google Analytics
View dabblet.css
1 2 3 4 5 6 7 8 9 10
/**
* Vertical centering with Flexbox + margin fallback
* Lea Verou & David Storey
*/
 
html, body { height: 100%; }
 
body {
width: 100%; /* needed for FF */
margin: 0;
View dabblet.css
1 2 3 4 5 6 7 8 9 10
/**
* Vertical centering with Flexbox + margin fallback
* Lea Verou & David Storey
*/
 
html, body { height: 100%; }
 
body {
width: 100%; /* needed for FF */
margin: 0;
View mollom.py
1 2 3 4 5 6 7 8 9 10
import urllib
 
from google.appengine.api import urlfetch
 
from gdata import oauth
 
class MollomRequest(object):
API_URL = 'http://rest.mollom.com/v1/'
# mollom public API key
CONSUMER_KEY = 'xxx'
Something went wrong with that request. Please try again.