works in tumblr with markdown editor enabled
requires multimarkdown
input:
sentence with footnote[^1]
.
"##### 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%]' |
#!/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 | |
# |
[ | |
{ "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() | |
{ |
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' | |
... | |
>>> |
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'
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] |