Public Gists by cscotta

Gravatar
Sun Oct 04 22:56:10 -0700 2009
1
2
3
import scala.util.Random
import scala.actors.Actor
import scala.actors.Actor._
Gravatar
Sun Oct 04 22:54:55 -0700 2009
1
2
3
import scala.util.Random
import scala.actors.Actor
import scala.actors.Actor._
Gravatar
Mon Aug 03 00:21:56 -0700 2009
1
2
3
require 'tokyocabinet'
require 'dm-core'
include TokyoCabinet
Gravatar
Mon Jul 13 22:01:50 -0700 2009
1
2
3
=== Simplest Form
 
insight:~ cscotta$ irb
Gravatar
Mon Jul 13 19:40:54 -0700 2009
1
2
3
class String
  def blank?
    self !~ /\S/
Gravatar
Tue Jul 07 11:46:41 -0700 2009
1
2
3
# Invocation from RAILS_ROOT:
# RAILS_ENV=test script/runner public/test/article_spec.rb
 
Gravatar
Sun May 10 20:12:42 -0700 2009
1
2
3
# backup_db.rb
 
# Remotely back up and securely download a copy of a MySQL database.
Gravatar
Sun Jan 25 12:09:58 -0800 2009
1
2
3
<html>
  <head>
    <title>My Application</title>
Gravatar
Sun Nov 30 23:47:37 -0800 2008
1
2
3
<!-- To display the "Feedback" widget on the right rather than the left,
add these styles below the code provided by Get Satisfaction.
 
Gravatar
Wed Nov 19 15:03:19 -0800 2008
1
2
3
*Redirecting smart and dumb mobile browsers in Interface ERB templates*
---------------------------------------------------------------------
 
Gravatar
Thu Nov 13 15:36:07 -0800 2008
1
2
3
function hoverNavInit() {
// Set event listeners to initialize hoverNav
$$('#nav-container #nav li').each(function(el) {
Gravatar
Fri Oct 10 12:18:12 -0700 2008
1
2
3
# Basic regex + Ruby method to strip textile formatting.
# Handles all test cases at http://hobix.com/textile/ down to "Phrase Attributes."
 
Gravatar
Sat Sep 06 18:11:24 -0700 2008
1
2
3
/* Custom YouTube Player Stylesheet for Firefox ---------
by C. Scott Andreas (http://www.paradoxica.net)
Sept. 6, 2008. Creative Commons + Attribution License.
Gravatar
Sat Sep 06 18:07:24 -0700 2008
1
2
3
/* Custom YouTube Player Stylesheet for Firefox
   by C. Scott Andreas (http://www.paradoxica.net)
   Sept. 6, 2008. Creative Commons + Attribution License.