Skip to content

Instantly share code, notes, and snippets.

View rue's full-sized avatar

Rue Saynatkari rue

View GitHub Profile
@rue
rue / gist:8997
Created September 5, 2008 17:23 — forked from dgtized/gist:8993
diff --git a/vm/exception.hpp b/vm/exception.hpp
index 1c4ffb0..9732b42 100644
--- a/vm/exception.hpp
+++ b/vm/exception.hpp
@@ -70,10 +70,8 @@ namespace rubinius {
static void raise(size_t expected, size_t given);
static void raise(const char* reason);
- ArgumentError(size_t e, size_t g) : expected(e), given(g) { }
- ArgumentError(const char* reason) {
@rue
rue / gist:10253
Created September 11, 2008 16:41 — forked from anonymous/gist:10246
/**
* Create a writer method.
*
* For attr_writer(foo, SomeClass), creates void foo(STATE, SomeClass* obj)
* that sets the instance variable my_foo to the object given and runs the write
* barrier.
*/
#define attr_writer(name, type) void name(STATE, type* obj) { \
my_ ## name = obj; \
@rue
rue / ghi.rb
Created April 13, 2010 05:43 — forked from macournoyer/ghi.rb
#!/usr/bin/env ruby
require "rubygems"
require "mutter"
require "httparty"
REMOTE = "origin"
REPO = `git config --get remote.#{REMOTE}.url`.chomp[/github\.com[\/\:]([^\/]+\/[^\/]+)\.git/, 1]
USER = `git config --get github.user`.chomp
TOKEN = `git config --get github.token`.chomp
@rue
rue / a.md
Created June 29, 2012 23:39 — forked from rkh/a.md

This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:

  • Netflix
  • Hulu / HuluPlus
  • CBS
  • ABC
  • MTV
  • theWB
  • CW TV
  • Crackle
@rue
rue / surprise.coffee
Last active December 25, 2015 03:59 — forked from tkareine/surprise.coffee
value =
if this.require
'aa'
else
'bb'