AUTHOR: Micah Elliott LICENSE: WTFPL
Flickr’s interestingness heuristics generate some lovely images. People visit every day and just click “Refresh” to see page after page of these. BUT… it’s much better just have these
#! /usr/bin/env ruby | |
# about — A still-concise extension of the standard ‘file’ info. | |
# | |
# Author: Micah Elliott http://MicahElliott.com | |
# License: WTFPL http://sam.zoy.org/wtfpl/ | |
# | |
# Combine standard file utils (eg, file, wc, head, tail, sort, stat) to | |
# give pieces of information about a file. Informs about file length, | |
# sorted-ness, and other meta-data. |
--- py3-orig.vim 2010-12-09 09:46:45.311794900 -0800 | |
+++ py3.vim 2010-12-09 10:35:17.895552660 -0800 | |
@@ -137,7 +137,21 @@ | |
syn match pythonComment "#.*$" display contains=pythonTodo,@Spell | |
syn match pythonRun "\%^#!.*$" | |
syn match pythonCoding "\%^.*\%(\n.*\)\?#.*coding[:=]\s*[0-9A-Za-z-_.]\+.*$" | |
-syn keyword pythonTodo TODO FIXME XXX contained | |
+ | |
+" Special non-standard comment types, to rainbow-ify your code. | |
+syn match pythonCommentedCode "##\w.*$" display |
" Vim syntax file | |
" Language: Python | |
" Maintainer: Dmitry Vasiliev <dima@hlabs.spb.ru> | |
" URL: http://www.hlabs.spb.ru/vim/python3.0.vim | |
" Last Change: 2010-11-14 | |
" Filenames: *.py | |
" Version: 3.0.6 | |
" | |
" Based on python.vim (from Vim 6.1 distribution) | |
" by Neil Schemenauer <nas@python.ca> |
# Zsh (to be ‘source’d) | |
# Python (Version) Selector (and Activator) | |
# | |
# Prompts user with a menu of installed Pythons with their version | |
# string and path. Their choice results in an alias that hides any | |
# invocation of ‘python’. | |
# | |
# Potentially useful for setups with multiple ‘pip’s, | |
# ‘virtualenv[wrapper]’s, etc. |
# ecd — Enhanced CD (for bash) | |
# | |
# Author: Micah Elliott http://MicahElliott.com | |
# License: WTFPL http://sam.zoy.org/wtfpl/ | |
# | |
# Usage: source .../ecd.sh; cd ... | |
# (Don’t try to run this file; it is to be sourced) | |
# | |
# Useful aliases: | |
# alias cdl='cd -l' |
AUTHOR: Micah Elliott LICENSE: WTFPL
Flickr’s interestingness heuristics generate some lovely images. People visit every day and just click “Refresh” to see page after page of these. BUT… it’s much better just have these
#! /usr/bin/env python | |
import sys, time, os | |
from timeout import timeOut | |
def testNoisyGraceful(): | |
sys.stdout.write('NoisyGraceful:'); sys.stdout.flush() | |
t0 = time.time() | |
#cmd = r'python -c "import time; time.sleep(10); print 1 * 4096"' | |
cmd = 'python sleep.py 1 4096' |
collections/fonts cloud.micahelliott.com:repomasters/fonts.git | |
collections/reference cloud.micahelliott.com:repomasters/reference.git | |
forks/rvm git@github.com:MicahElliott/rvm.git | |
gems/autotest-notification git@github.com:MicahElliott/autotest-notification.git | |
gems/gist https://github.com/defunkt/gist.git | |
gems/rdoctest https://github.com/stephencelis/rdoctest.git | |
gems/rvm https://github.com/wayneeseguin/rvm.git | |
gists/PySelect git@gist.github.com:741781.git | |
gists/Xdefaults git@gist.github.com:718567.git | |
gists/about git@gist.github.com:720498.git |
In this example I'm setting up doc-test with lein for a new project.
Create a new project.
% lein new my-proj
% cd my-proj
Demo |