Public Gists by bjeanes

Gravatar
Thu Nov 05 21:15:06 -0800 2009
1
2
3
2009-11-06 15:11 ERROR feed Unhandled error in plugin series: list.index(x): x not in list
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/FlexGet-1.0r913-py2.6.egg/flexget/feed.py", line 235, in __run_event
Gravatar
Mon Nov 02 21:09:37 -0800 2009
1
2
3
kern.sysv.shmmax=20971520
kern.sysv.shmmin=1
kern.sysv.shmmni=32
Gravatar
Mon Nov 02 20:45:01 -0800 2009
1
2
3
bjeanes@Cort ~/S/salesonrails (master) $ > rake db:create
(in /Users/bjeanes/Sites/salesonrails)
PGError: ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)
Gravatar
Wed Oct 28 23:57:08 -0700 2009
1
2
3
# Allows you to do (1) instead of (2)
 
# 1
Gravatar
Mon Oct 19 15:10:06 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
require 'rubygems'
Gravatar
Tue Oct 13 01:27:44 -0700 2009

      
Gravatar
Wed Sep 30 18:10:13 -0700 2009
1
2
3
>> h = Hash.new(Hash.new)
=> {}
>> h["1"]["2"]
Gravatar
Fri Sep 18 01:03:09 -0700 2009
1
2
3
0. Introduction.
1. New! Register domains with international characters!
2. New! Major flash media improvements!
Gravatar
Fri Sep 11 02:28:41 -0700 2009
1
## A bit of regex, a bit of fish, and I get Fish shell method missing for super pastable efficiency!!!
Gravatar
Sat Sep 05 18:06:11 -0700 2009
1
2
3
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
 
describe Matrimony do
Gravatar
Sat Jul 18 22:42:52 -0700 2009
1
2
3
function newin() {
   /bin/pwd | /usr/bin/pbcopy
   /usr/bin/open -a Terminal
Gravatar
Sat Jul 11 05:58:50 -0700 2009
1
2
3
code = Uv.parse(code, "xhtml", "ruby", false, "sunburst")
 
# semantics (add <code> tag)
Gravatar
Sun Jul 05 17:15:25 -0700 2009
1
2
3
bjeanes@Maccy ~/S/secret_project (master) ☠ $ > du -cs vendor/ features/
4120 vendor/
680 features/
Gravatar
Fri Jul 03 04:34:04 -0700 2009
1
2
3
irb(main):001:0> gem 'RedCloth', '= 4.1.1'
=> true
irb(main):002:0> require 'RedCloth'
Gravatar
Wed Jun 10 02:25:06 -0700 2009
1
2
3
Failed to connect to Twitter. It's likely down for a bit:
HTTP 400: Bad Request at
Failed to connect to Twitter. It's likely down for a bit:
Gravatar
Thu May 28 21:42:08 -0700 2009
1
2
3
# Log to STDOUT if in Rails
if ENV.include?('RAILS_ENV') && !Object.const_defined?('RAILS_DEFAULT_LOGGER')
  require 'logger'
Gravatar
Thu May 07 19:51:26 -0700 2009
1
2
3
   def human_factor
- # tripping the captain fantastic
- "#{factor/100}#{".#{factor%100/10}" unless factor%100 == 0}x"
Gravatar
Tue Apr 28 21:09:24 -0700 2009
1
2
3
# If it is going to make it a UTC time, it should
# at least convert it but it just assumes it is
# UTC without even looking at the time zone
Gravatar
Mon Apr 27 22:33:46 -0700 2009
1
2
3
Dear Mr Bodaniel Jeanes
 
Later today Exetel will commence a short (5 day) trial of what is claimed to be a non-intrusive internet site filtering system. By 'non-intrusive' is meant something that a user will not notice in terms of any browsing or file downloading speed differences.
Gravatar
Thu Apr 23 03:04:39 -0700 2009
1
sudo gem install ParseTree RedCloth Shoulda Text ZenTest abstract acts_as_paranoid ghost bjeanes-twibot bones capistrano cheat color cucumber datamapper defunkt-github deprec diff-lcs duration echoe engineyard-eycap erubis eventmachine extlib ezcrypto faker find_gem gbarcode gemedit gemify gemjour haml highline hoe hpricot httparty httpclient josevalim-rails-footnotes json json_pure juggernaut libxml-ruby lockfile markaby mash mbleigh-subdomain-fu mechanize memcache-client mime-types meow mocha money mongrel mysql newjs nokogiri oauth open4 passenger pdf-writer plist polyglot postgres prawn rack rake randexp rb-appscript rcov rdiscount redgreen rfeedparser right_aws rr rspec rspec-rails rspec_hpricot_matchers ruby-debug rubyforge rubyist-aasm ruport schacon-git sake scruffy selenium-client sequel sinatra soap4r sprinkle starling syntax technicalpickles-jeweler term-ansicolor thin thoughtbot-shoulda timcharper-calendar_date_select tlsmail treetop twitter-auth uuidtools webrat wirble wycats-textmate