Libre Caslon:
http://www.impallari.com/projects/overview/libre-caslon-display-and-text
Domine:
http://www.google.com/fonts/specimen/Domine
import java.io.IOException; | |
import java.util.LinkedList; | |
public class BF { | |
private interface Visitor { | |
void visit (Loop loop); | |
void visit (Left left); | |
void visit (Right right); | |
void visit (Increment increment); | |
void visit (Decrement decrement); |
int getTotal(char *nameOfFile) | |
{ | |
FILE * fin = fopen(nameOfFile, "r"); //this can be done in one line | |
int total=0; | |
int c; | |
if(fin == NULL) | |
perror("Error opeining file"); | |
while((c = fgetc(fin)) != EOF) |
""""Create "The Matrix" of binary numbers scrolling vertically in your terminal. | |
original code adapted from juancarlospaco: | |
- http://ubuntuforums.org/showpost.php?p=10306676 | |
Inspired by the movie: The Matrix | |
- Corey Goldberg (2013) | |
Requires: |
def divide(a, b): | |
return a/b | |
def calculate(a, b): | |
try: | |
result = divide(a, b) | |
except: | |
raise Exception('You Done Goofed') | |
return result |
In [12]: calculate(4,0) | |
--------------------------------------------------------------------------- | |
Exception Traceback (most recent call last) | |
/home/tom/<ipython-input-12-4fcddf188333> in <module>() | |
----> 1 calculate(4,0) | |
/home/tom/<ipython-input-10-ea74cc892d2c> in calculate(a, b) | |
6 result = divide(a, b) | |
7 except: | |
----> 8 raise Exception('You Done Goofed') |
CPPFLAGS=-g -c -std=c++0x | |
LDFLAGS=-g | |
RM=rm -f | |
SOURCES=merge-sort.cc | |
OBJECTS=merge-sort.o | |
all: merge-sort |
# This is my adhoc build script because I'm to lazy to relearn make | |
# and i'm bad at shell scripting, and sed is confusing to me | |
import os | |
import subprocess | |
OUT_PATH = os.path.realpath('.') | |
HAML_PATH = '{0}/{1}'.format(OUT_PATH, 'haml') | |
SKIP = ['.swp'] | |
def skip(f): | |
for s in SKIP: | |
if f.endswith(s): |
int i; | |
int redPin = 9; | |
int greenPin = 11; | |
int bluePin = 10; | |
int pins[3] = {redPin, greenPin, bluePin}; | |
void setup() | |
{ |