Skip to content

Instantly share code, notes, and snippets.

View greatseth's full-sized avatar

Seth Thomas Rasmussen greatseth

View GitHub Profile
@greatseth
greatseth / gist:5149
Created August 12, 2008 21:17
Ruby (1.8.6 at least) supports some very confusing and odd if/else/elsif behavior
#!/usr/bin/env ruby
condition = eval ENV["C"].to_s
if condition
puts "got condition"
elsif
puts "no condition, looks like elsif nothing works"
else
puts "yeah apparently you can do elsif nothing and it will run that branch and then also keep checking other if branches?"
Date/Time: 2008-09-06 18:17:08.074 -0400
OS Version: 10.4.11 (Build 8S2167)
Report Version: 4
Command: shoes-bin
Path: ./shoes-bin
Parent: bash [8801]
Version: 0.r941 (???)
Build Version: 1
(in /Users/seth/ruby/merb/merb-plugins/merb_sequel)
Successfully built RubyGem
Name: merb_sequel
Version: 0.9.6
File: merb_sequel-0.9.6.gem
sudo gem install --local pkg/merb_sequel-0.9.6.gem --no-update-sources --no-rdoc --no-ri
ERROR: Error installing pkg/merb_sequel-0.9.6.gem:
merb_sequel requires sequel (>= 1.4.0, runtime)
rake aborted!
def timeline
setup_cred
# @htmlentities = HTMLEntities.new
@twitter = Twitter::Base.new *@cred
# @friends = twitter_api { @twitter.friends.map(&:name) }
# clear do
background white
Date/Time: 2008-09-15 01:10:55.219 -0400
OS Version: 10.4.11 (Build 8S2167)
Report Version: 4
Command: shoes-bin
Path: ./shoes-bin
Parent: bash [15423]
Version: 0.r982 (???)
Build Version: 1
dyld: Symbol not found: __ZTv0_n12_NSt14basic_ifstreamIwSt11char_traitsIwEED0Ev
Referenced from: /usr/lib/libstdc++.6.dylib
Expected in: /usr/lib/libstdc++.6.dylib
@greatseth
greatseth / gist:11894
Created September 21, 2008 19:55
problems with utf in shoes on os x, sample app at end
Date/Time: 2008-09-21 15:54:30.981 -0400
OS Version: 10.4.11 (Build 8S2167)
Report Version: 4
Command: shoes-bin
Path: ./shoes-bin
Parent: bash [5571]
Version: 0.r994 (???)
Build Version: 1
** Execute shoes/native/cocoa.o
gcc -I. -O -c -oshoes/native/cocoa.o -I./deps/include -I./deps/include/cairo -I./deps/include/pango-1.0 -I./deps/include/glib-2.0 -I./deps/lib/glib-2.0/include -I./deps/lib/ruby/1.8/i686-darwin8.9.1 -DDEBUG -DVIDEO -g -DSHOES_QUARTZ -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -fpascal-strings -I/tmp/dep/include -fno-common -pipe -fno-common -x objective-c shoes/native/cocoa.m
In file included from ./shoes/app.h:14,
from shoes/native/cocoa.m:5:
./deps/lib/ruby/1.8/i686-darwin8.9.1/ruby.h:506: warning: function declaration isn’t a prototype
./deps/lib/ruby/1.8/i686-darwin8.9.1/ruby.h:506: warning: function declaration isn’t a prototype
./deps/lib/ruby/1.8/i686-darwin8.9.1/ruby.h:507: warning: function declaration isn’t a prototype
./deps/lib/ruby/1.8/i686-darwin8.9.1/ruby.h:507: warning: function declaration isn’t a prototype
./deps/lib/ruby/1.8/i686-darwin8.9.1/ruby.h:515: warning: function declaration isn’t a
03:37 manveru: and you may wanna add some info about additional heredoc syntax, like <<FOO.strip\nFOO
03:37 zenspider: I figure if I don't put it in, ppl won't use it. :)
_\m/ google-geo | rake release --trace
(in /Users/seth/p/google-geo)
** Invoke release (first_time)
** Invoke clean (first_time)
** Execute clean
Cleaning
** Invoke package (first_time)
** Invoke pkg/google-geo-2.1.tar.gz (first_time)
** Invoke pkg/google-geo-2.1 (first_time)
** Invoke CHANGELOG (first_time, not_needed)