mkdir tdd && cd tdd
bundle init
vim Gemfile
# A sample Gemfile
sudo apt-get remove nodejs nodejs-dev npm | |
sudo add-apt-repository ppa:richarvey/nodejs | |
sudo apt-get update | |
sudo apt-get install nodejs nodejs-dev npm | |
nodejs -v #outputs v0.10.13 | |
npm -v #outputs v1.3.3 |
sudo apt-get build-dep python-psycopg2 | |
pip install psycopg2 |
rake db:migrate RAILS_ENV="production" | |
rails s -e production |
(since_became_a_zombie..Float::INFINITY).each { eat :brains, :tasks } |
path_your_folder/* | |
!path_your_folder/.gitkeep | |
sudo cp /dev/null my_file.txt |
#yank inner word | |
yiw | |
#visually select inner word | |
viw |
mkdir tdd && cd tdd
bundle init
vim Gemfile
# A sample Gemfile
private class Screen | |
{ | |
Form mainForm = ... | |
private void Screen_Loaded(object sender, ControlLoadedEventArgs e) | |
{ | |
if(mainForm.InputControls != null && mainForm.InputControls.Contains("Id")) | |
mainForm.InputControls["Id"].Editable = isEditable; | |
} | |
} |
var request = require('supertest'), | |
mongoose = require('mongoose'), | |
app = require('../../../../server'); | |
describe('GET /api/transactions/import', function(){ | |
before(function (done) { | |
mongoose.connection.on('open', done); | |
}); | |
it('respond with json', function(done){ |