start new:
tmux
start new with session name:
tmux new -s myname
| require 'rubygems' | |
| require 'httparty' | |
| require 'benchmark' | |
| require 'thread' | |
| class Google | |
| include HTTParty | |
| base_uri 'http://google.com' | |
| def self.benchmark |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| require 'rspec' | |
| describe "Behaviour" do | |
| it "should pass" do | |
| true.should eq true | |
| end | |
| it "should fail" do | |
| true.should eq false | |
| end |
Originally published in June 2008
When hiring Ruby on Rails programmers, knowing the right questions to ask during an interview was a real challenge for me at first. In 30 minutes or less, it's difficult to get a solid read on a candidate's skill set without looking at code they've previously written. And in the corporate/enterprise world, I often don't have access to their previous work.
To ensure we hired competent ruby developers at my last job, I created a list of 15 ruby questions -- a ruby measuring stick if you will -- to select the cream of the crop that walked through our doors.
Candidates will typically give you a range of responses based on their experience and personality. So it's up to you to decide the correctness of their answer.
| // Traverses an arbitrary struct and translates all stings it encounters | |
| // | |
| // I haven't seen an example for reflection traversing an arbitrary struct, so | |
| // I want to share this with you. If you encounter any bugs or want to see | |
| // another example please comment. | |
| // | |
| // The MIT License (MIT) | |
| // | |
| // Copyright (c) 2014 Heye Vöcking | |
| // |
June 26-27, 2014
Web site: http://reddotrubyconf.com/ Twitter: http://twitter.com/reddotrubyconf
Ping me @cheeaun on Twitter if you found some awesome stuff for #rdrc2014. This gist will be updated whenever there's new stuff.
Previously, on RedDotRubyConf...
| /* ======================================================================== | |
| * Ratchet: push.js v2.0.2 | |
| * http://goratchet.com/components#push | |
| * ======================================================================== | |
| * inspired by @defunkt's jquery.pjax.js | |
| * Copyright 2014 Connor Sears | |
| * Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE) | |
| * ======================================================================== */ | |
| /* |
| Applications | |
| - Google Image search | |
| - Google speech recognition | |
| - Google Street View number recognition | |
| https://en.wikipedia.org/wiki/Deep_learning | |
| ANNs: A brief history | |
| ===================== |