This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GitHub::Repo.get('mojombo/jekyll').fetch(:self, :watchers) | |
GitHub::Repo.get('schacon/kidgloves').fetch(:watchers).watchers.each | |
GitHub::Repo.get('parndt/hub').parent.fetch(:self, :watchers).watchers | |
GitHub::User.get('kneath').fetch(:followers, :followings) | |
GitHub::User.get('defunkt').fetch(:followers, :followings) | |
GitHub::User.get('schacon').fetch(:followers, :followings) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Class | |
{ | |
public: | |
int a (int a, short b) | |
{ | |
return a + b; | |
} | |
int (Class::*PointerToA())(int, short) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Takes two parameters, location of repo and branch name | |
# First defaults to directory where you're running from | |
# Second defaults to 'master' | |
# To override, use | |
# -p path/to/repo | |
# -b branch_name | |
if ARGV.include? '--path' or ARGV.include? '-p' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <memory> | |
struct Printer { | |
virtual void Print() = 0; | |
}; | |
struct StandardCoutPrinter : Printer { | |
std::weak_ptr<std::string> content; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
goog.require('goog.testing.jsunit'); | |
goog.require('example'); | |
goog.require('goog.dom'); | |
goog.require('goog.dom.NodeType'); | |
var testHtmlEscaping = function() { | |
example.sayHello('<b>greeting</b>'); | |
var greetingEl = goog.dom.getElement('greeting'); | |
assertEquals('The <h1 id="greeting"> element should only have one child node', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat sat_words | \ | |
sed -e 's:^\(\w*\) .*:"\1":' \ | |
-e 's:^\(\w*-\w*\) .*:"\1":' \ | |
-e 's:^\(\w*-\w*-\w*\) .*:"\1":' \ | |
-e 's:^\(\w*-\w*-\w*-\w*\) .*:"\1":' \ | |
| sed -e ':a;N;$!ba;s:\n:,:g' \ | |
-e 's:^:-[:' \ | |
-e 's:-[:]:' | |
# changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[48 32 50 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"websocket" | |
"http" | |
"fmt" | |
"io" | |
) | |
func EchoServer(ws *websocket.Conn) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kuba:gosab$ tree | |
. | |
|-- src | |
| `-- gosab | |
| |-- api | |
| | |-- sab_api.go | |
| | `-- sab_api_test.go | |
| |-- backend | |
| | |-- connector | |
| | | `-- connector.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$:.unshift './' | |
require 'calculator' | |
describe Calculator do | |
describe :constructor do | |
it 'should take many arguments' do | |
args = [1, 2, 3, 4] | |
Calculator.new(*args).values.should eq(args) | |
end | |
end |
OlderNewer