Skip to content

Instantly share code, notes, and snippets.

Micah Elliott MicahElliott

Block or report user

Report or block MicahElliott

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@MicahElliott
MicahElliott / gitmulti.csv
Created Apr 9, 2012
gitmulti -- a collection of git repos
View gitmulti.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
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
@MicahElliott
MicahElliott / test_timeout.py
Created Feb 29, 2012
Impose time/timeout threshold on command running time (POSIX & Windows)
View test_timeout.py
#! /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'
@MicahElliott
MicahElliott / REAMDE.md
Last active Nov 26, 2019
Generated User Names by Color
View REAMDE.md

Generated User Names by Color

Good for: demo purposes or seeding a small group of assignable user names/avatars.

I came across a need for a set of neutral generated user names. Pulling them out of a gender-neutral name dictionary was pretty lame. I also wanted some form of distinguishable avatar. This led to looking at a list of web-friendly color names.

@MicahElliott
MicahElliott / demo.txt
Created Jan 13, 2012
Display all the possible toilet fonts for a string.
View demo.txt
banner
### ###
# # # # # ###### ## #### #### # # ###
# # # # # # # # # # # # # ###
# # # #### ##### # # #### # # # #
# # # # # # ###### # # # #
# # # # # # # # # # # # # # ###
### ###### # # # ###### # # #### #### # # ###
View README.md

flickpapr — Randomly choose an “interesting” flickr photo for desktop wallpaper.

AUTHOR: Micah Elliott LICENSE: WTFPL

About Flickr Interestingness

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

@MicahElliott
MicahElliott / ecd.sh
Created Jun 3, 2011
ecd — Enhanced CD (for bash)
View ecd.sh
# 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'
@MicahElliott
MicahElliott / vimpress.mkd
Created Dec 21, 2010
Plain Presentations in Plain Text (PPPT)
View vimpress.mkd

Presentations in Plain Text (PPT++)

With some help from Markdown and Vim.

“Hope this makes you chuckle.” —Micah Elliott

@MicahElliott
MicahElliott / pysel.zsh
Created Dec 15, 2010
Python (Version) Selector (and Activator)
View pysel.zsh
# 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.
@MicahElliott
MicahElliott / python.vim
Created Dec 10, 2010
Add special comments support to v3.0.6 for vim python syntax.
View python.vim
" 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>
@MicahElliott
MicahElliott / syntax-python.vim.patch
Created Dec 9, 2010
Patch to add special comments support to v3.0.6 for vim python syntax.
View syntax-python.vim.patch
--- 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
You can’t perform that action at this time.