Skip to content

Instantly share code, notes, and snippets.

View ignu's full-sized avatar
🏳️‍🌈
interested in: react/typescript rails/ruby elixir & graphql

Leonard Smith ignu

🏳️‍🌈
interested in: react/typescript rails/ruby elixir & graphql
View GitHub Profile
require 'httparty'
require 'ruby-growl'
class FedEx
include HTTParty
format :html
class << self
@status, @location = nil, nil
namespace FakeIt.Specs
{
public class Customer
{
public string Name { get; set; }
}
[TestFixture]
public class BluePrintSpecs
class BaseThing
end
class A < BaseThing end
class B < BaseThing end
case basething
when A:
redirect_to a_path(basething)
when B:
@ignu
ignu / vim.rb
Created December 13, 2010 23:50 — forked from uasi/vim.rb
require 'formula'
class Vim <Formula
url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2'
homepage 'http://www.vim.org/'
md5 '5b9510a17074e2b37d8bb38ae09edbf2'
def patchlevel; 81 end
def features; %w(tiny small normal big huge) end
def interp; %w(lua mzscheme perl python python3 tcl ruby) end
@ignu
ignu / gist:822804
Created February 11, 2011 18:43
podcasts
The Ruby Show The Ruby Show http://feeds.feedburner.com/railsenvy-podcast
Briefly Awesome A weekly rundown of what's cool, new, and interesting in the world of web, mobile, social media, and entertainment. If it's awesome, it's here. Hosted by Christina Warren and Dan Benjamin. http://feeds.feedburner.com/brieflyawesome
The Big Web Show The Big Web Show features special guests and topics like web publishing, art direction, content strategy, typography, web technology, and more. It's everything web that matters. Hosted by Dan Benjamin and Jeffrey Zeldman. http://feeds.feedburner.com/bigwebshow
The Talk Show The Talk Show features discussion about technology, Apple, Mac, iPhone, iPad, movies, directors, and the Web. Hosted by Dan Benjamin and John Gruber. http://feeds.feedburner.com/thetalkshow
The Pipeline The Pipeline is an interview show, featuring in-depth conversations with innovators, designers, geeks, newsmakers, entrepreneurs, and people who create amazing things. Hosted by Dan Benjamin. http:
@ignu
ignu / gist:1015460
Created June 8, 2011 21:30
RVM broken on zsh using ubuntu
☁ ~ rvm use ree
Using /usr/local/rvm/gems/ree-1.8.7-2011.03
☁ ~ ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]
☁ ~ bash
root@li285-163:~# rvm use ree
Using /usr/local/rvm/gems/ree-1.8.7-2011.03
root@li285-163:~# ruby -v
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-linux], MBARI 0x8770, Ruby Enterprise Edition 2011.03
root@li285-163:~#
window.ConsoleDay = Backbone.Model.extend({
initialize: function() {
_.bindAll(this, 'addWearing', 'addWearings', 'updateWearingsCount', 'getDiv');
this.wearings = new WearingCollection;
this.wearings.url = "/days/" + this.get("date") + "/wearings";
this.wearings.bind("add", this.updateWearingsCount);
this.wearings.fetch();
},
updateWearingsCount : function() {
this.getDiv().find(".item_count").text("(" + this.wearings.length + " items)");
@ignu
ignu / colbert_report.rb
Created July 26, 2011 17:45
Colbert Report Ticket Notifier
require 'rubygems'
require 'ruby-growl'
require 'net/http'
comedy_central = Net::HTTP.new('impresario.comedycentral.com', 80)
growl = Growl.new "localhost", "ruby-growl", ["Colbert Report Tickets"]
growl.notify "Colbert Report Tickets", "Colbert Report Ticket Notifer", "You'll be alerted when tickets are available."
while true do
unless(comedy_central.get("/show/5b2eb3b0eb99f143", nil).body =~ /there are no tickets available/)
☁ academicladder [ls-locking-groups] ⚡ rvm install ree
Installing Ruby Enterprise Edition from source to: /Users/ignu/.rvm/rubies/ree-1.8.7-2011.03
It appears that the archive has already been extracted. Skipping extract (use --force to force re-download and extract).
ree-1.8.7-2011.03 - #installing
ERROR: Error running './installer -a /Users/ignu/.rvm/rubies/ree-1.8.7-2011.03 --no-tcmalloc --dont-install-useful-gems ', please read /Users/ignu/.rvm/log/ree-1.8.7-2011.03/install.log
ERROR: There has been an error while trying to run the ree installer. Halting the installation.
☁ academicladder [ls-locking-groups] ⚡ tail /Users/ignu/.rvm/log/ree-1.8.7-2011.03/install.log
It looks like the source is already configured.
Skipping configure script...
/usr/bin/gcc-4.2 -dynamiclib system_allocator.c -install_name @rpath/libsystem_allocator.dylib -o libsystem_allocator.dylib
☁ code cd stylitics
Can't locate auto/DynaLoader/dl_findfile.al in @INC (@INC contains: /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.3 /System/Library/Perl/5.12/darwin-thread-multi-2level /System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level /System/Library/Perl/Extras/5.12 .) at /System/Library/Perl/5.12/darwin-thread-multi-2level/DynaLoader.pm line 168
Compilation failed in require at /System/Library/Perl/5.12/darwin-thread-multi-2level/IO/Handle.pm line 266.
BEGIN failed--compilation aborted at /System/Library/Perl/5.12/darwin-thread-multi-2level/IO/Handle.pm line 266.
Compilation failed in require at /System/Library/Perl/5.12/darwin-thread-multi-2level/IO/Seekable.pm line 101.
BEGIN failed--compilation aborted at /System/Library/Perl/5.12/darwin-thread-multi-2level/IO/Seekable.pm line 101.
Compilation failed in require at /System/Library/Perl/5.