Skip to content

Instantly share code, notes, and snippets.

View Spaceghost's full-sized avatar
👻
Building distributed and decentralized systems that run in the browser

Johnneylee Jack Rollins Spaceghost

👻
Building distributed and decentralized systems that run in the browser
View GitHub Profile
commit 95bcc8ac6463e63001b33094ede2e21796da6c23
Author: Johnneylee Jack Rollins <[email protected]>
Date: Mon Jun 30 07:17:59 2014 -0700
Add Callable and Bindable for services/controllers
* Callable depends on the extending class implementing #call as an
instance method. Another instance method name might be preferable, I
don't know. I've even seen fun dynamic things like `extend
Callable.call_method(:execute)`
class UserCreator
def initialize(listener)
@listener = listener
end
def create(attributes)
user = User.new(attributes)
if user.save
# send email
/*!
*
* stagas - icecream
*
*/
var bpm = 125;
var tuning = 440;
var transpose = 11;
2 Quality Analysts at Onsite (Columbus, OH) with Ruby Mine, Ruby Cucumber and Selenium skills and 3 years of Test automation experience.
Location : Columbus, OH
The resources has to be very fluent in Ruby mine, Ruby cucumber and Selenium
Strong verbal and written communication
Willing to take the direction.

How-to setup a simple git push deployment

These are my notes basically. I first created this just as a reminder for myself. Feel free to use this for your project as a starting point.

On the server (example.com)

  1. Create a user on example.com, as which we (the git client) connects (push) to exmaple.com.
sudo useradd -m -s /usr/bin/git-shell git
class Foo
ATTRIBUTES = %i|name address|
attr_reader *ATTRIBUTES
def initialize(opts={})
opts.keys.each do |meth|
self.send("#{meth}=", opts.fetch(meth, nil) # Do any special things here, I suppose
end
end
@Spaceghost
Spaceghost / gist:9055820
Created February 17, 2014 18:04
Why I hate Coffeescript.
a = undefined # var a;
a = "lol" # a = 'lol';
rawr = (-> # rawr = function() {
a = "wat" # var a = 'wat';
a # return a;
).call() # }.call();
console.log a # console.log(a);
# returns 'wat' # returns 'lol'
# What the fucking fuck, Coffeescript...
gem 'minitest', '~> 4.7'
require 'minitest/autorun'
require 'open3'
class TestOutput < Minitest::Unit::TestCase
def test_that_open3_works
_,stdout,_ = Open3.popen3('rails -v')
assert_match /Rails/, stdout.read.chomp
01:15:52 <pipecloud> While working on getting rubygems.org to work on ruby 2.1 and 2.0, I've seem to hit a problem. the gem archives in test/gems/dos* are being used in test/unit/pusher_test.rb and they return StringIO objects. I've called #read on them prior to passing them Cutter.new, but I'm out of my understanding when they complain about "string contains null byte". I'm
01:15:52 <pipecloud> curious about what I should change, but more curious about how they pass currently.
01:16:58 <pipecloud> I'm going to be checking into 1.9.3 and seeing how it works there and hopefully that'll give me some more information.
01:24:00 <pipecloud> Where's sj26 when you need him? :(
01:34:07 <pipecloud> I doubt it has anything to do with marshalling like in https://groups.google.com/forum/#!msg/ruby-core-google/eMLd2MgOnVU/OedFMqUOcuEJ which drbrain_ commented on, but I guess I'll keep digging.
@Spaceghost
Spaceghost / inline
Created December 31, 2013 07:09
wrapped is unnecessary
def hooman(name)
"I am a pink, fleshy human named, #{name}."
rescue ArgumentError => e
self.logger "Someone screwed up again, bob."
raise HumanError(e)
end