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
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
@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...
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

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
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.
/*!
*
* stagas - icecream
*
*/
var bpm = 125;
var tuning = 440;
var transpose = 11;
class UserCreator
def initialize(listener)
@listener = listener
end
def create(attributes)
user = User.new(attributes)
if user.save
# send email
commit 95bcc8ac6463e63001b33094ede2e21796da6c23
Author: Johnneylee Jack Rollins <Johnneylee.Rollins@gmail.com>
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)`
# JS config for NVIDIA SHIELD
# Axes:
# -----
# 1 Left stick H
# 2 Left stick V
# 3 Left trigger
# 4 Right stick H
# 5 Right stick V
# 6 Right trigger
# 7 Pad H
tim0thy:phoenix-demo32 pipework$ java -jar phoenix_demo32.jar
Exception in thread "main" scala.MatchError: osx (of class java.lang.String)
at com.sg.pnx.util.SysUtil$.nativeLibs(SysUtil.scala:41)
at com.sg.pnx.util.SysUtil$.checkForNativeLibs(SysUtil.scala:88)
at com.sg.pnx.util.SysUtil$.loadNativeLibs(SysUtil.scala:80)
at com.sg.pnx.util.InitUtil$.init(InitUtil.scala:17)
at com.sg.pnx.Game$.delayedEndpoint$com$sg$pnx$Game$1(Game.scala:17)
at com.sg.pnx.Game$delayedInit$body.apply(Game.scala:13)
at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)