Skip to content

Instantly share code, notes, and snippets.

@mlb5000
mlb5000 / tffittingrooms.user.js
Last active August 29, 2015 14:05
TF Fitting Room User Script
// ==UserScript==
// @name Tailored Fit Fitting Rooms
// @namespace https://local.tailoredfit.com
// @version 0.8
// @description Schedule a fitting room to be prepared at your favorite stores!
// @match https://*.blueandcream.com
// @match http://*.blueandcream.com
// @match https://www.blueandcream.com
// @match http://www.blueandcream.com
// @match https://www.blueandcream.com/*
@mlb5000
mlb5000 / gist:8327824
Created January 9, 2014 01:25
Mixpanel EmberJS Integration
//detect changes to the Hash URL
$(window).on('hashchange', function(){
mixpanel.track("pageview", {"url": window.location.href });
});
Ember.Application.initializer({
initialize: function(container, application) {
//track the initial page load's location (the user's entry route)
mixpanel.track("pageview", {"url": window.location.href });
}
@mlb5000
mlb5000 / gist:7799126
Created December 5, 2013 02:17
Heroku deploy failure
-----> Fetching custom git buildpack... done
-----> Go app detected
-----> Installing go1.2... done
-----> Running: godep go install -tags heroku ./...
Db.go:10:5: cannot find package "github.com/garyburd/redigo/redis" in any of:
/app/tmp/cache/go1.2/go/src/pkg/github.com/garyburd/redigo/redis (from $GOROOT)
/tmp/build_f743effe-0b2b-447f-9872-441080b32a59/.heroku/g/src/github.com/cy137/tfapi/Godeps/_workspace/src/github.com/garyburd/redigo/redis (from $GOPATH)
/tmp/build_f743effe-0b2b-447f-9872-441080b32a59/.heroku/g/src/github.com/garyburd/redigo/redis
main.go:5:2: cannot find package "github.com/gorilla/pat" in any of:
/app/tmp/cache/go1.2/go/src/pkg/github.com/gorilla/pat (from $GOROOT)
@mlb5000
mlb5000 / gist:6173892
Created August 7, 2013 13:10
CSS to allocate space for jQuery Validate error messages
.field-validation-valid {
display: inline-block;
}
@mlb5000
mlb5000 / user-extensions.js
Created December 15, 2012 01:16
Selenium user extension to deal with Internet Explorer compatibility issues
//Add this to your Selenium user-extensions.js file
Selenium.prototype.doHyperFocus = function(locator) {
this.doWindowFocus();
this.doFocus(locator);
};
Selenium.prototype.doCompatibleClick = function(locator) {
this.doHyperFocus();
this.doClick(locator);