Skip to content

Instantly share code, notes, and snippets.

View emilyst's full-sized avatar

Emily Strickland emilyst

View GitHub Profile
@emilyst
emilyst / markdown-info.markdown
Created August 20, 2011 15:37 — forked from nikography/markdown-info.markdown
markdown compilation

markdown reference

footnotes:

works in tumblr with markdown editor enabled
requires multimarkdown

input:
sentence with footnote[^1].

@emilyst
emilyst / .vimrc
Created September 25, 2011 05:28
Current vim stuff
"##### general settings #####
set nocompatible
set encoding=utf-8
set number
if exists('+relativenumber') | set relativenumber | endif
if has('unnamedplus') | set clipboard=unnamedplus | endif
"set numberwidth=4
set ruler
if has('persistent_undo')
\pset null 'NULL'
\set HISTFILE ~/.psql_history- :HOST - :DBNAME
\set HISTSIZE 100000
\timing
\encoding unicode
-- red prompt for live
\set PROMPT1 '%[%`(ps ho "%a" $PPID | grep -q _live) && echo -e "\\e[0;41m"`%]%/%R%#%[%033[m%] '
\set PROMPT2 '%[%`(ps ho "%a" $PPID | grep -q _live) && echo -e "\\e[0;41m"`%]%/%R%#%[%033[m%] '
\set PROMPT3 '%[%`(ps ho "%a" $PPID | grep -q _live) && echo -e "\\e[0;41m"`%]>>[%033[m%]'
@emilyst
emilyst / hack.sh
Created March 31, 2012 17:22 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@emilyst
emilyst / Default (OSX).sublime-keymap
Created August 15, 2012 20:47
SwitchToAndFromTest Sublime Plugin Beta
[
{ "keys": ["super+g", "super+t"], "command": "switch_to_from_test" }
]
# Find a file
function ff() { find . -type f -iname '*'$*'*' -ls ; }
# Find a file with pattern $1 in name and execute $2 on it
function fe() { find . -type f -iname '*'${1:-}'*' -exec ${2:-file} {} \; ; }
# Find a pattern in a set of files and highlight them
# (needs a recent version of egrep)
function fs()
{
@emilyst
emilyst / gist:3837876
Created October 5, 2012 03:25
Fall Sonnet
So high attains this conflagration's sparks,
At last its work wrought through branch and limb,
A glory crowning for alighting larks
Who sing from which its solitary hymn.
I found a god this month with autumn's turn.
Its air and sunlight binds us soul to soul.
A chill of frost fills morning as an urn:
An ash of drops of vapor dark as coal.
With supplication pass I by this sight.
Try as I might I can't pin fall to sky.
>>> something = "Hello"
>>> if something:
... print 'YES'
...
YES
>>> if something == True:
... print 'YES'
...
>>>
@emilyst
emilyst / gist:4261233
Created December 11, 2012 19:23
$PS1 setup and screenshot

My $PS1 setup (depends on git-completion and bash-colors script sourced from (in my case) https://github.com/lilix/dot/tree/master/bin and otherwise installable elsewhere.

[ -n "$(which git-completion.sh 2> /dev/null)" ] && source git-completion.sh
[ -n "$(which bash-colors.sh 2> /dev/null)" ] && source bash-colors.sh

export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWSTASHSTATE=1
export GIT_PS1_SHOWUNTRACKEDFILES=1
export GIT_PS1_SHOWUPSTREAM='auto'
@emilyst
emilyst / Sample of Melo.txt
Created December 16, 2012 00:48
The "sample" taken from the Activity Monitor while the app 'Melo' is "beachballing" -- non-responsive. Happens frequently, often after switching to a new track. It appears to recover itself spontaneously after several minutes, at which time, it reacts to interactions which happened during this phase which were apparently queued up by the system.
Sampling process 4050 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling Melo (pid 4050) every 1 millisecond
Process: Melo [4050]
Path: /Applications/Melo.app/Contents/MacOS/Melo
Load Address: 0x10bc61000
Identifier: fi.mmrr.Melo
Version: 1.1.2 (2082)
Code Type: X86-64 (Native)
Parent Process: launchd [135]