Skip to content

Instantly share code, notes, and snippets.

@koffienl
koffienl / gist:0e0c1a83cb9b8d53ca1a
Created February 16, 2016 20:43
interrupt pulse counter
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
const char* ssid = "xx";
const char* password = "xx.com";
ESP8266WebServer server(80);
@webplumbr
webplumbr / git-commands
Last active September 3, 2015 22:10
A quick reference to git commands
# to add a local git branch
git branch <branch-name>
# switchover to a branch
git checkout <branch-name>
# merge trunk (master) with a branch
git checkout <branch-name>
git merge master
@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')