This file contains hidden or 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
feature "share documents" do | |
specify do | |
Given "Mary is signed in" | |
... | |
When "Joe is signed in" | |
... | |
end | |
let(:mary) { "Mary" } |
This file contains hidden or 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
:tddium: | |
:tests: | |
- :type: custom | |
:command: bundle exec rake jasmine:ci | |
:invocation: single | |
:output: exit-status |
This file contains hidden or 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
pushd `pwd` | |
if rvm --version 2>/dev/null; then | |
gem install soloist | |
else | |
sudo gem install soloist | |
fi | |
mkdir -p ~/cookbooks; cd ~/cookbooks |
This file contains hidden or 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
module Foo | |
def say | |
'foo' | |
end | |
end | |
module Bar | |
def say | |
'bar' | |
end |
This file contains hidden or 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 HttpMethod | |
object HttpPostMethod extends HttpMethod { override def toString = "POST" } | |
object HttpGetMethod extends HttpMethod { override def toString = "GET" } | |
object HttpDeleteMethod extends HttpMethod { override def toString = "DELETE" } | |
object HttpPutMethod extends HttpMethod { override def toString = "PUT" } | |
abstract class Param(){ | |
val name: String | |
val description: String |
This file contains hidden or 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
var connection = http.createClient(80, 'content.guardianapis.com'); | |
var request = connection.request('GET', q.uri, {'host':'content.guardianapis.com'}); | |
request.end(); | |
request.on('response', function(response){ | |
var apiData = ""; | |
response.setEncoding('utf8'); | |
response.on('data', function(chunk){ | |
apiData += chunk; | |
}); | |
response.on('end', function(){ |
This file contains hidden or 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
{ error: null | |
, ended: false | |
, maxFieldsSize: 2097152 | |
, keepExtensions: true | |
, uploadDir: '/tmp' | |
, encoding: 'utf-8' | |
, headers: | |
{ host: 'localhost:3000' | |
, 'user-agent': 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8' | |
, accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' |
This file contains hidden or 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
{ error: null | |
, ended: false | |
, maxFieldsSize: 2097152 | |
, keepExtensions: true | |
, uploadDir: '/tmp' | |
, encoding: 'utf-8' | |
, headers: | |
{ host: 'localhost:3000' | |
, connection: 'keep-alive' | |
, referer: 'http://localhost:3000/' |
This file contains hidden or 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
/** | |
* Module dependencies. | |
*/ | |
var express = require('./../../lib/express'), | |
form = require('./../../support/connect-form'), | |
sys = require('sys'); | |
var app = express.createServer( |
This file contains hidden or 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
module LearnBoost mongoose | |
module christkv node-mongodb-native 78a96e85963f4869a4440355b5bbfb93c8d449a6 | |
mv modules/node-mongodb-native modules/mongoose/lib/support/ |
NewerOlder