Skip to content

Instantly share code, notes, and snippets.

View sandeep45's full-sized avatar

Sandeep Arneja sandeep45

View GitHub Profile
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@tobob
tobob / description
Last active September 29, 2017 08:51
My unicorn and nginx configuration
My unicorn and nginx configuration
use ln -s and place new_app in 'sites-enabled' folder
usefull commands:
lsof -wni tcp:8080 - get PID of all unicorn processes
kill -9 PID - kill process
nginx -s reload - reload nginx
unicorn_rails -c /home/workspace/new_app/config/unicorn.rb -D - starts unicorn server
@johnwesonga
johnwesonga / AppDispatcher.js
Created October 27, 2014 18:26
React+Flux App
/**
*
*
* AppDispatcher
**/
var Dispatcher = require('flux').Dispatcher;
var copyProperties = require('react/lib/copyProperties');
var AppDispatcher = copyProperties(new Dispatcher(), {