Skip to content

Instantly share code, notes, and snippets.

View jaw6's full-sized avatar

Joshua Wehner jaw6

View GitHub Profile
A linguistics professor was lecturing to his English class one day. "In English," he said, "A double negative forms a positive. In some languages, though, such as Russian, a double negative is still a negative. However, there is no language wherein a double positive can form a negative. "A voice from the back of the room piped up, "Yeah, right."
A linguistics professor was lecturing to his English
class one day. "In English," he said, "A double
negative forms a positive. In some languages,
though, such as Russian, a double negative is still
a negative. However, there is no language wherein a
double positive can form a negative. "A voice from
the back of the room piped up, "Yeah, right. "
#encoding: UTF-8
def does this work(input)
puts input
end
does this work 'at all?'
# >> at all?
➜ java -version | wc
java version "1.6.0_35"
Java(TM) SE Runtime Environment (build 1.6.0_35-b10-428-11M3811)
Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01-428, mixed mode)
0 0 0
➜ echo "what" | wc
1 1 5
python_version = `python --version`
# Python 2.7.1
# => ""
puts python_version
# => nil
@jaw6
jaw6 / blocks.rb
Created January 14, 2014 03:49
An exercise in using Ruby blocks
require 'minitest/autorun'
class List
include Enumerable
def initialize()
@notes = []
yield @notes if block_given?
end
attr_reader :notes
1. Click on the little picture or icon in the upper right and click "Sign out”.
2. Then on the next screen click "Sign in with a different account”.
3. Click “Remove”
4. Click the X next to the account you want to sign out of.
5. Click “Done”
6. Congratulations now you are signed out.
  • 1077 – Walk to Canossa: The excommunication of Henry IV, Holy Roman Emperor is lifted.
  • 1393 – King Charles VI of France is nearly killed when several dancers' costumes catch fire during a masquerade ball.
  • 1521 – The Diet of Worms begins, lasting until May 25.
  • 1547 – Henry VIII dies. His nine-year-old son, Edward VI becomes King, and the first Protestant ruler of England.
  • 1573 – Articles of the Warsaw Confederation are signed, sanctioning freedom of religion in Poland.
  • 1624 – Sir Thomas Warner founds the first British colony in the Caribbean, on the island of Saint Kitts.
  • 1701 – The Chinese storm Dartsedo.
  • 1724 – The Russian Academy of Sciences is founded in St. Petersburg by Peter the Great, and implemented by Senate decree. It is called the St. Petersburg Academy of Sciences until 1917.
  • 1754 – Horace Walpole coins the word serendipity in a letter to Horace Mann.
  • 1760 – Pownal, Vermont is created by Benning Wentworth as one of the New Hampshire Grants.
  • 2006 (Saturday)
  • 2007 (Sunday)
  • 2008 (Monday)
  • 2009 (Wednesday)
  • 2010 (Thursday)
  • 2011 (Friday)
  • 2012 (Saturday)
  • 2013 (Monday)
  • 2014 (Tuesday)
  • 2015 (Wednesday)

2012

  • Diana Bliss, Australian director and producer (b. 1954)
  • Joseph Curran, American basketball player and coach (b. 1922)
  • Don Fullmer, American boxer (b. 1939)
  • Keriman Halis Ece, Turkish pianist and model, Miss Universe 1932 (b. 1913)
  • Roman Juszkiewicz, Polish astronomer and astrophysicist (b. 1952)
  • Don Starkell, Canadian adventurer and author (b. 1932)

2013

  • Eddy Choong, Malaysian badminton player (b. 1930)