Skip to content

Instantly share code, notes, and snippets.


Jimmy Eisenhauer jimmyeisenhauer

View GitHub Profile
View Javascript String Replace Benchmarks
var Benchmark = require('benchmark');
var escapeRegex = require('escape-string-regexp');
var suite = new Benchmark.Suite;
var text = "Contrary to popular belief, Lorem Ipsum is not simply random text. mouse It has roots in a mouse piece of classical Latin \
literature from 45 BC, making it over 2000 mouse years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, \
looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum mouse passage, and going through the cites of the word in \
classical literature, fish discovered the mouse undoubtable source. Lorem mouse Ipsum comes from sections 1.10.32 and 1.10.33 of de Finibus \
jimmyeisenhauer / cycleOSXWifi
Created March 14, 2016 05:44
Shell script to cycle osx wifi connection in a loop
View cycleOSXWifi
while [ $COUNTER -lt 10 ]; do
echo The counter is $COUNTER
networksetup -setairportpower airport off; networksetup -setairportpower airport on
sleep 5
jimmyeisenhauer / nightwatch_chai.js
Created August 12, 2015 21:36
Recreate nightwatch.js chai issue
View nightwatch_chai.js
var expect = require('chai').expect;
module.exports = {
before : function(browser) {
console.log('Setting up...');
View sample.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View selenium
def create_button
@driver.find_element(:link, 'Create')
def create_button_click
@wait = 8)
puts 'DEBUG: Clicking Create Button'
puts 'DEBUG: Waiting for View This Challenge'
@wait.until { @driver.find_element(:link, 'view this challenge') }
jimmyeisenhauer /
Created November 30, 2012 18:58 — forked from jonah-williams/
Command line iOS project builds and over-the-air distribution
# command line OTA distribution references and examples
jimmyeisenhauer / gist:2795771
Created May 27, 2012 00:58
Drop and Rebuild Heroku database
View gist:2795771
heroku pg:reset SHARED_DATABASE --confirm fasterfaster
heroku run rake db:migrate
heroku run console
heroku restart
- manually add one record to test
- run performance test
View test.rb
this is a test of gist command
jimmyeisenhauer / learninruby1
Created August 26, 2011 00:20
code sample for my blog article...and a test of github:gist fetaure
View learninruby1
rails new learninruby
cd learninruby
bundle install
rails server //It worked on the dev server!
git add .
git commit -m "first commit"
heroku create jameseisenhauer