Skip to content

Instantly share code, notes, and snippets.

View itsthomson's full-sized avatar

Thomson Nguyen itsthomson

View GitHub Profile
" .vimrc, 15 Apr 2009
" Thomson Nguyen
syn on
" command-line completion
set wildmode=list:longest,full
set showmode
set showcmd
"[dickensurl.com] has been created to convert long URLs into wonderful works by Charles
Dickens. The fear of cryptic URLs, long or short, is now no longer a problem. Enter an
ugly URL above and hit convert button. Soon you will be faced with beautiful words of
Charles Dickens. Forget tinyurl.com, now you have dickensurl.com!"
Example:
http://dickensurl.com/7/If_you_could_see_my_legs_when_I_take_my_boots_off,_you'd_form_some_idea_of_what_unrequited_affection_is.
redirects to
def fib(n) #sum in ruby
return n if (0..1).include? n
fib(n-1) + fib(n-2) if n > 1
end
#----------------
# euler1.rb
# Thomson Nguyen
#----------------
# I try to learn ruby by solving Project Euler
# puzzles. (http://projecteuler.net)
#
# Feel free to take a look at my progress and
# comment, but don't laugh!
#
#----------------
# euler2.rb
# Thomson Nguyen
#----------------
# I try to learn ruby by solving Project Euler
# puzzles. (http://projecteuler.net)
#
# Feel free to take a look at my progress and
# comment, but don't laugh!
#
In an e-mail from Pete Convey:
--------
Dear all
I am sorry to be passing this on by e-mail, but I have just
learnt the extremely sad news that Ian Thompson died yesterday.
Our sympathies are with his wife, Anne, and those close to him.
In due course I will pass on details of funeral arrangements,
# conway.r
# Thomson Nguyen
# tn248@cam.ac.uk
# Simulates Conway's Game of Life
# size: the length of our starting matrix (a size^2 square)
#
# MIT License blah blah blah
#
# Directions:
If fidelity to freedom of democracy is the code of our civic
religion, then surely the code of our humanity is faithful
service to that unwritten commandment that says we shall give
our children better than we ourselves received.
Dear Thomson,
How are you doing? I just wanted to let you know that I got into UC Riverside
and I owe it all to you man. I am still waiting on UC Irvine and UC Merced.
I wasn't planning on applying to any UC's at all because of my GPA and SAT
scores but I'm glad you forced me to. I will be the first one in my family
to go to college and hopefully the first one to graduate. Thanks again for
all the help you've given me on the personal statement and for giving me all
the cool books for me to read this year.
---------------------------
states i've been to (11/50)
---------------------------
california
arizona
texas
arkansas
tennessee
iowa