Skip to content

Instantly share code, notes, and snippets.

@nithinbekal
nithinbekal / wc10.html
Created February 9, 2010 17:11
JavaScript Countdown timer
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>World Cup 2010 Countdown Timer</title>
</head>
<body>
<div id="worldcup_countdown_time"> </div>
<script src="wc10.js" type="text/javascript" charset="utf-8"></script>
@bbwharris
bbwharris / us_state_loader.rake
Created February 22, 2012 03:56
States with Abbreviations, Rails, Ruby
namespace :states do
desc "load state names and abbreviations"
task :load => :environment do
states = {
"Alabama" => "AL",
"Alaska" => "AK",
"Arizona" => "AZ",
"Arkansas" => "AR",
"California" => "CA",
"Colorado" => "CO",