Skip to content

Instantly share code, notes, and snippets.

Glenn Roberts glennr

View GitHub Profile
View git-bisect-runner-for-rspec-inside-docker.sh
# runner.sh
#
# Runs a git bisect using spec/el_bisector_spec.rb inside the 'app' docker container
#
# Usage
#
# Pop your desired spec file in spec/el_bisector_spec.rb. Then use this script as the input to `git bisect run`
#
#
# git bisect start ; git bisect good 0ee17c61406728b2c7866c9cbc407d24600affb5 ; git bisect bad ; git bisect run ./runner.sh; git bisect reset;
View keybase.md

Keybase proof

I hereby claim:

  • I am glennr on github.
  • I am glennrob (https://keybase.io/glennrob) on keybase.
  • I have a public key ASBosoApL-Zqr2EL0ps7gQyWus4ZUx7uF8Fj1px3UeZClQo

To claim this, I am signing this object:

View formferret-form-with-honeypot.html
<form action="https://api.formferret.com/v1/f/YOUR_UNIQUE_FORM_ID"
method="POST"
accept-charset="UTF-8">
<input name="_gotcha" type="text" />
<input name="email" type="email" placeholder="you@domain.com"/>
<button type="submit">Submit</button>
</form>
View formferret-contact-form.html
<form action="https://api.formferret.com/v1/f/YOUR_UNIQUE_FORM_ID"
method="POST"
accept-charset="UTF-8">
<input type="hidden" name="utf8" value=""/>
<input type="text" name="name" placeholder="Your name"/>
<input type="email" name="email" placeholder="you@domain.com"/>
<textarea name="comment" placeholder="Your comment"/>
<button type="submit">Submit</button>
</form>
View formferret-contact-form-ajax.html
<form id="contact" action="https://api.formferret.com/v1/f/YOUR_UNIQUE_FORM_ID"
method="POST"
accept-charset="UTF-8">
<input type="hidden" name="utf8" value=""/>
<input type="text" name="name" placeholder="Your name"/>
<input type="email" name="email" placeholder="you@domain.com"/>
<textarea name="comment" placeholder="Your comment"/>
<button type="submit">Submit</button>
</form>
View submit-FormFerret-form-with AJAX.js
$(document).ready(function() {
$('#contact').submit(function(e) {
var form = $(this);
var endpoint = form.prop('action');
var data = form.serialize();
var submitButton = $('button', form);
e.preventDefault();
$.ajax({
@glennr
glennr / .eslintrc
Created Nov 19, 2015
ESLint config for React + Redux projects
View .eslintrc
{
"parser": "babel-eslint", // I want to use babel-eslint for parsing!
"rules": {
"comma-dangle": 0, // dangling commas are ok
"indent": [2, 2, {
"SwitchCase": 1
}],
"jsx-quotes": 1,
"linebreak-style": [2, "unix"],
"quotes": [2, "single"],
View gist:5d0241b3bd2e28e2fcc8
### Keybase proof
I hereby claim:
* I am glennr on github.
* I am glennrob (https://keybase.io/glennrob) on keybase.
* I have a public key whose fingerprint is A116 1BB1 8A55 FED3 0991 44D9 97CD 22CC C005 CD65
To claim this, I am signing this object:
View keybase.md

Keybase proof

I hereby claim:

  • I am glennr on github.
  • I am glennrob (https://keybase.io/glennrob) on keybase.
  • I have a public key whose fingerprint is D2C0 4AD2 276E C6CC 6F1C 91BC C7D7 09B8 D688 8ACA

To claim this, I am signing this object:

View gist:1475845
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
You can’t perform that action at this time.