Skip to content

Instantly share code, notes, and snippets.

@wingrunr21
wingrunr21 / output.txt
Created March 7, 2013 21:15
her does not pass query parameters when doing relation lookups
2013-03-07 14:14:35] INFO WEBrick 1.3.1
[2013-03-07 14:14:35] INFO ruby 1.9.3 (2013-01-15) [x86_64-darwin12.3.0]
[2013-03-07 14:14:35] INFO WEBrick::HTTPServer#start: pid=54326 port=3000
her version: 0.4.1
localhost - - [07/Mar/2013:14:14:35 MST] "GET /users/1?foobar=true HTTP/1.1" 200 10
- -> /users/1?foobar=true
localhost - - [07/Mar/2013:14:14:35 MST] "GET /users/1/projects HTTP/1.1" 200 10
- -> /users/1/projects
[2013-03-07 14:14:35] INFO going to shutdown ...
@wingrunr21
wingrunr21 / config.rb
Created June 13, 2013 15:28
RBX 2.0.0-dev compile problem on 12.10
module Rubinius
# Make this reload friendly without silly constant defined warnings.
BUILD_CONFIG = {
:command_line => "--prefix=/opt/rbenv/versions/rbx-2.0.0-dev --gemsdir=/opt/rbenv/versions/rbx-2.0.0-dev",
:which_ruby => :rbx,
:build_ruby => "/opt/rbenv/versions/rbx-2.0.0-dev/bin/rbx",
:build_rake => "rake",
:build_perl => "perl",
:llvm => :prebuilt,
:llvm_configure => "/tmp/ruby-build.20130613144949.24356/rubinius-2.0.0-dev/vendor/llvm/Release/bin/llvm-config",
@wingrunr21
wingrunr21 / config.rb
Created June 13, 2013 15:31
RBX 2.0.0-dev compile problem on 12.10 with MRI build ruby
module Rubinius
# Make this reload friendly without silly constant defined warnings.
BUILD_CONFIG = {
:command_line => "--prefix=/opt/rbenv/versions/rbx-2.0.0-dev --gemsdir=/opt/rbenv/versions/rbx-2.0.0-dev",
:which_ruby => :ruby,
:build_ruby => "/usr/bin/ruby1.9.1",
:build_rake => "rake",
:build_perl => "perl",
:llvm => :prebuilt,
:llvm_configure => "/tmp/ruby-build.20130613152938.5290/rubinius-2.0.0-dev/vendor/llvm/Release/bin/llvm-config",
@wingrunr21
wingrunr21 / osx_compat.rb
Created October 11, 2013 22:52
A simple utility module we used to detect the version of OS X currently running in order to work around the oracle-instant-client segfault problem.
module OSXCompat
OSX_REGEX = /darwin\d{2}/
SNOW_KITTY = "darwin10"
class << self
def snow_kitty_or_lower?
if darwin?
osx_version <= SNOW_KITTY
else
@wingrunr21
wingrunr21 / catchall.coffee
Created October 23, 2013 13:27
A simple catchall script for Hubot to process anything it doesn't know how to handle via Wolfram|Alpha
Wolfram = require('wolfram-alpha').createClient(process.env.HUBOT_WOLFRAM_APPID)
module.exports = (robot) ->
robot.catchAll (msg) ->
r = new RegExp "^(?:#{robot.alias}|#{robot.name}) (.*)", "i"
matches = msg.message.text.match(r)
if matches != null && matches.length > 1
Wolfram.query matches[1], (e, result) ->
if result and result.length > 0
msg.send result[1]['subpods'][0]['text']
@wingrunr21
wingrunr21 / SassMeister-input.scss
Created January 21, 2014 14:47
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
$turquoise: #000000;
$green-sea: #ffffff;
@mixin calc-color($first-color, $second-color) {
.palette-#{$first-color} {

Keybase proof

I hereby claim:

  • I am wingrunr21 on github.
  • I am wingrunr21 (https://keybase.io/wingrunr21) on keybase.
  • I have a public key whose fingerprint is 103C 35BC 88C8 3416 663C 71DE 1BE2 5556 F415 9273

To claim this, I am signing this object:

@wingrunr21
wingrunr21 / SassMeister-input.scss
Created October 1, 2014 18:58
Generated by SassMeister.com.
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
@mixin desc($name) {
@at-root &-#{$name} { @content; }
}
@mixin mod($name) {
@wingrunr21
wingrunr21 / SassMeister-input.scss
Created October 1, 2014 19:18
Generated by SassMeister.com.
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
@mixin desc($name) {
@at-root &-#{$name} { @content; }
}
@mixin tdesc($name, $parent) {
@wingrunr21
wingrunr21 / phone_link_helper.rb
Created October 6, 2014 21:18
Rails helper that will create tel: style anchor tags in a similar fashion as to how the link_to Rails helper operates