Skip to content

Instantly share code, notes, and snippets.

Luke Fender lfender6445

Block or report user

Report or block lfender6445

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lfender6445 / gist:7649335
Last active Dec 29, 2015
jasmine require js trickery
View gist:7649335
subject = {}
describe 'Main', ->
beforeAll = false
beforeEach ->
return if (beforeAll)
beforeAll = true;
require ['shared/main'], (main) -> subject = main
lfender6445 / query_to_hash.js
Created Sep 25, 2013
jQuery convert query string to json
View query_to_hash.js
query_to_hash = function() {
var j, q;
q =\?/, "").split("&");
j = {};
$.each(q, function(i, arr) {
arr = arr.split('=');
return j[arr[0]] = arr[1];
return j;
lfender6445 / gist:6514498
Created Sep 10, 2013
stress test for leads
View gist:6514498
var start, elapsed;
var load_times= [];
var init = function(){
$('body').bind('finished', function(){
elapsed = new Date() - start;
console.log("Elapsed time: " + elapsed);
lfender6445 /
Created Sep 4, 2013
OSX, pipes to pbcopy. Allows you to parse pivotal story from you current Github branch, matching first sequence of numbers in the branch.
git rev-parse --abbrev-ref HEAD | egrep -o '\d+'| head -n 1 | tr -d '\n' | pbcopy
lfender6445 / gist:6226290
Created Aug 13, 2013
restrict googleplaces by United States so it only returns zipcodes and states
View gist:6226290
// Application Javascript - see for full example
var autocomplete, input, address = {};
input = $("#searchBox");
$('form').submit(function(){ return false; });
var init = function(){
View UserReviews.feature
Feature: User Reviews // poor feature, needs improvement
Scenario: As a user leaving a review for my property //need to capture validation for form as whole, leave out capy stuff
Given I am on the review page
and I provide name, email address, phone number, rating from 1 to 5, optional review
When I press submit
Then I must select a captcha associated with my phone number and property
When I select the captcha representing my property
and the captcha validates
Then I will be redirected to the thank you page
# Chrome Refresh
# Simple applescript browser reloader for Google Chrome. It will either open a
# new tab with the url passed in as an argument, refresh an existing tab, or open
# a file from your current working directory.
# Link this up with watchr to auto-refresh browser windows when you save files
# or bind it in vim, textmate etc.
You can’t perform that action at this time.