Public Gists by andrew

Gravatar
Sat Oct 24 10:41:17 -0700 2009
1
2
3
#! /usr/bin/env ruby
#
# Save in your path as "isreg" and chmod +x. Then: isreg domain.com
Gravatar
Fri Oct 09 06:45:50 -0700 2009
1
2
3
Pushing
 
Andrew@adamvaio ~/Sites/plugins/make_resourceful (master) $ git push origin master
Gravatar
Fri Aug 21 01:34:59 -0700 2009
1
2
3
<!DOCTYPE html>
<html>
  <head>
Gravatar
Fri Aug 07 05:43:27 -0700 2009
1
2
3
/*
* jGrow
* jGrow is a jQuery plug-in that makes the textarea adjust its size according to the length of the text.
Gravatar
Tue Aug 04 10:39:05 -0700 2009
1
2
3
#!/usr/bin/env ruby
# -*- ruby -*-
require 'rubygems'
Gravatar
Thu Jul 30 02:38:05 -0700 2009
1
2
3
<!-- custom ol list-styles -->
 
<style type="text/css">
Gravatar
Tue Jul 21 01:12:51 -0700 2009
1
2
3
- simple
- public over private
- personal vanity
Gravatar
Mon Jul 20 07:03:05 -0700 2009
1
2
3
#! /usr/bin/ruby
 
## Elliott Kember's Delete MM_ Script.
Gravatar
Thu Jul 16 07:18:46 -0700 2009
1
2
3
def format_datetime_ago(time)
  formatted = time.strftime('%d %b %y at %I:%M%p')
 
Gravatar
Fri Jul 10 03:24:28 -0700 2009
1
2
3
require 'autotest/fsevent'
 
module Autotest::Growl
Gravatar
Mon Jun 22 07:12:52 -0700 2009
1
2
3
require File.dirname(__FILE__) + '/../test_helper'
 
class CommentsControllerTest < ActionController::TestCase
Gravatar
Tue Jun 16 15:19:31 -0700 2009
1
2
3
/* http://meyerweb.com/eric/tools/css/reset/
/* v1.0 | 20080212
 
Gravatar
Wed May 27 05:09:21 -0700 2009
1
2
3
# is_paranoid shoulda macro
 
def self.should_be_paranoid
Gravatar
Fri May 22 07:01:48 -0700 2009
1
2
3
def counties_options
  returning '' do |options|
    options << content_tag(:optgroup, :label => 'England') do
Gravatar
Mon May 18 08:25:22 -0700 2009
1
$.ajaxSettings.accepts.html = $.ajaxSettings.accepts.script;
Gravatar
Sat Apr 25 05:32:21 -0700 2009
1
2
3
require 'rubygems'
require 'garb' # http://github.com/vigetlabs/garb/
require 'sparklines' # http://github.com/topfunky/sparklines
Gravatar
Sat Apr 25 05:08:31 -0700 2009
1
2
3
require 'rubygems'
require 'garb' # http://github.com/vigetlabs/garb/
 
Gravatar
Tue Apr 21 02:51:45 -0700 2009
1
2
3
# from http://www.insiderpages.com/rubyonrails/2007/01/get-referring-search-engine-keywords.html
 
def setup_referring_keywords
Gravatar
Wed Apr 15 08:20:39 -0700 2009
1
2
3
# import content from an exported folder of html files from jumpchart.com
# TODO login and download the zip direct from jumpchart
 
gist: 89169 Rails template
Gravatar
Thu Apr 02 05:39:45 -0700 2009
1
2
3
# Delete unnecessary files
run "rm public/index.html"
run "rm public/favicon.ico"