This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
m3u2dir.py | |
Copies the files found in a .m3u file | |
to either the current working dir or a dir | |
specified on the command line. | |
IDEAS: | |
automatically find .m3u in current working dir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
backup_dotfiles.py | |
Copies dotfiles over (.zshrc, .screenrc, etc.) to a backup dir | |
and syncs them with github. | |
""" | |
import argparse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Every hour: | |
# 1. Open quotes or goals based on the one opened least frequently | |
# a. Return random line from file | |
# b. display file | |
import time | |
import random | |
def get_line(lines): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python | |
# -*- coding: utf-8 -*- | |
''' | |
Created on Jul 16, 2010 | |
@author: mark | |
''' | |
import sys, string, pprint | |
from datetime import datetime | |
from thefuckingweather import LocationError, get_weather, DEGREE_SYMBOL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
audinf.py | |
Displays simple track info about a list of mp3s | |
""" | |
import sys | |
import os | |
from mutagen.easyid3 import EasyID3 as eid3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" Upload a CSV file (like what Instapaper exports *hint* *hint*)\ | |
to Readability. """ | |
import os.path | |
import csv | |
import readability | |
READABILITY_KEY = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.net.*; | |
import java.util.*; | |
/** | |
* Primitive HTTP Web Server | |
* @author Mark Feltner | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# AUTHOR: Mark Feltner | |
OPERANDS = { | |
"I" => 1, | |
"V" => 5, | |
"X" => 10, | |
"L" => 50, | |
"C" => 100, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma License (Gpl); | |
-- ROMAN CONVERTER | |
-- This package provides two functions: one to convert an | |
-- integer to its Roman Numeral equivalent, and another to convert | |
-- a Roman Numeral (consisting of M,D,C,L,X,V,I) to its | |
-- integer equivalent. | |
--------------------------------------------------------------------- | |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; | |
package RomanConverter is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/ruby | |
# | |
# dungeon.rb: dungeon state + operations to add/remove objs, open doors, etc. | |
# - Each object is represented as a simple string, and the intent is that | |
# each object would be in just one location. | |
# | |
# This file contains unit test code; to run it, type | |
# ruby dungeon.rb | |
# @author: Rob Hasker |
OlderNewer