Public Gists by drnic

Gravatar
Sat Jul 04 17:08:59 -0700 2009
1
2
3
$ sudo rake gems:install
Password:
(in /Users/drnic/Sites/ambler)
gist: 139898 Proposal for talk at Rails ...
Gravatar
Thu Jul 02 20:58:32 -0700 2009
1
2
3
Dead simple JavaScript Unit Tests in Rails with Blue Ridge and Screw.Unit
=========================================================================
 
Gravatar
Tue Jun 09 15:07:57 -0700 2009
1
2
3
Dr Nic Williams is not only a real doctor but is really called Nic. Well,
technically he has a PhD and his first name is Nicholas. The GitHub Badge
on his blog says he has over 90 public repositories, one which is the GitHub Badge itself.
Gravatar
Sun Jun 07 17:12:04 -0700 2009
1
2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 
Gravatar
Sat Jun 06 15:02:24 -0700 2009
1
2
3
require("spec_helper.js");
require("../public/ninja_search.js"); // relative to spec folder
 
Gravatar
Fri Jun 05 20:53:23 -0700 2009
1
2
3
// ==UserScript==
// @name Ninja Search
// @namespace http://drnicwilliams.com/
Gravatar
Wed May 27 18:40:10 -0700 2009
1
2
3
  def advertise!
    puts "* Advertising on bonjour"
 
gist: 80554 For mocha integration into ...
Gravatar
Tue Mar 17 06:47:51 -0700 2009
1
2
3
# For mocha integration, add this file into features/support folder
 
require "mocha"
Gravatar
Sun Feb 15 00:56:56 -0800 2009
1
2
3
var list = $$('ul.entry-list li');
for (var i = 0; i < list.length; i++) {
  var li = list[i];
Gravatar
Sat Jan 24 04:32:05 -0800 2009
1
2
3
/*
Copyright (C) 2007 Stig Brautaset. All rights reserved.
 
Gravatar
Mon Jan 19 15:41:12 -0800 2009
1
2
3
module ChocTop::Appcast
  def make_build
    sh "xcodebuild -configuration Release"
gist: 48207 See http://github.com/blog/...
Gravatar
Fri Jan 16 15:24:01 -0800 2009
1
2
3
# http://henrik.nyh.se/2008/12/git-dirty-prompt
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/
# username@Machine ~/dev/dir[master]$ # clean working directory
Gravatar
Wed Dec 31 17:35:07 -0800 2008
1
2
3
  # Returns the persistent store coordinator for the application. This
  # implementation will create and return a coordinator, having added the
  # store for the application to it. (The folder for the store is created,
gist: 41855 The recipe object starts as...
Gravatar
Tue Dec 30 19:10:15 -0800 2008
1
2
3
  # Image well
  def addImage(sender)
    return unless recipe = recipeArrayController.selectedObjects.lastObject
Gravatar
Tue Dec 30 19:08:48 -0800 2008
1
2
3
  # Image well
  def addImage(sender)
    return unless recipe = recipeArrayController.selectedObjects.lastObject
Gravatar
Tue Dec 30 02:21:33 -0800 2008
1
2
3
// FROM: http://svn.cocoasourcecode.com/SkinnableApp/AppController.m
//
// AppController.m
Gravatar
Mon Dec 29 01:40:07 -0800 2008
1
2
3
class SpeechController
  # from - (void)speechSynthesizer:(NSSpeechSynthesizer *)sender willSpeakWord:(NSRange)wordToSpeak ofString:(NSString *)text
  def speechSynthesizer(sender, willSpeakWord: wordToSpeak, ofString: text)
Gravatar
Mon Dec 22 16:13:57 -0800 2008
1
2
3
require 'hotcocoa'
include HotCocoa
 
gist: 38843 template for rails
Gravatar
Sun Dec 21 18:50:22 -0800 2008
1
2
3
# SUPER DARING APP TEMPLATE 1.0
# By Peter Cooper
 
Gravatar
Thu Dec 18 16:21:29 -0800 2008
1
2
3
require "hpricot"
 
Shoes.app do