This file contains hidden or 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
{-- | |
- | |
- @author: Mark Feltner | |
- | |
- **Haskell** | |
- | |
- Haskell is a nice language. I enjoyed it better than F# for functional | |
- programming. | |
- From my limited perspective, it seems that Haskell would operate best | |
- in a highly theoretical or mathematical environment; not the environment |
This file contains hidden or 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); | |
-- BigIntegers - Package Specification | |
-- | |
-- Package to define operations on BigIntegers | |
-- ########################################################################### | |
with Ada.Text_IO; use Ada.Text_IO; | |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; | |
package BigIntegers is |
This file contains hidden or 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 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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): |