Public Gists by blaenk

Gravatar
Tue Jul 07 22:12:22 -0700 2009
1
2
3
#! /usr/bin/python
from glob import glob
from fnmatch import fnmatch
Gravatar
Thu Jul 02 20:51:32 -0700 2009
1
2
3
# To try it out, simply copy the 'export' line into any bash terminal and press enter
# If you would like to keep it, create/edit a/the .bash_profile file in your home
# directory and paste the lines in there and save. The changes should now be permanent
Gravatar
Tue Jun 16 12:44:07 -0700 2009
1
2
3
// YOU CAN DO ANYTHING YOU WANT WITH THIS SOURCE AS LONG AS:
// - YOU GIVE ME CREDIT SOMEWHERE IN YOUR SOURCE
// THANKS
Gravatar
Sat Jun 06 13:02:42 -0700 2009
1
2
3
def calc_nums(row)
  return [1] if row == 1
  
gist: 121912 Shows any given row from Pa...
Gravatar
Mon Jun 01 17:50:48 -0700 2009
1
2
3
import java.util.Scanner;
 
public class PascalsTriangle