View eco.js
var plan = ["############################",
"# # # o ##",
"# #",
"# ##### #",
"## # # ## #",
/* y */ "### ## # #",
"# ### # #",
"# #### #",
"# ## o #",
"# o # o ### #",
View Palindrome.js
var exampleStr = 'ja emmaj';
function isPalindrome (str) {
var re = /\W_/g;
var regStr = str.toLowerCase().replace(re, '');
var reverseStr = regStr.split('').reverse().join('');
View post.md

This is the post

View findstuff.sh
FOUND_DIR="stuff-found"
cd "~/"
mkdir -p "$FOUND_DIR"
for var in $@
do
echo "Finding $var ..."
sudo find / -iname "*$var*" > $FOUND_DIR/$var.txt
done
View .bashrc
todo() {
if [ -z "$1" ] ; then
echo 'Opening todo...'
vi ~/todo/todo.txt
else
if [ -n "$1" ] ; then
case $1 in
update) cd ~/todo/ && git add . && git commit -am "update" &
*) echo 'ummm'; ;;
View footer.js
View adventure.py
from sys import exit
def gold_room():
print "This room is full of gold. How much do you take?"
choice = raw_input("> ")
if "0" in choice or "1" in choice:
how_much = int(choice)
else:
dead("Man, learn to type a number.")
View fizzbuzz.py
numlist = []
for num in xrange(1, 101):
if(num % 5 == 0 and num % 3 == 0):
msg = 'FizzBuzz'
elif(num % 3 == 0):
msg = 'Fizz'
elif(num % 5 == 0):
msg = 'Buzz'
View size.py
SUFFIXES = {1000: ['KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],
1024: ['KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB']}
def approximate_size(size, a_kilobyte_is_1024_bytes=True):
'''Convert a file size to human-readable form.
Keyword arguments:
size -- file size in bytes
a_kilobyte_is_1024_bytes -- if True (default), use multiples of 1024
if False, use multiples of 1000
View import_bookmarks.py
"""
Python script to import bookmark files into a single file
To run, use:
python import_bookmarks.py bookmarkfile bookmarkdirectory/
"""
from sys import argv
from os import listdir, path
script, filename, directory = argv