Skip to content

Instantly share code, notes, and snippets.

@mlb5000
mlb5000 / tffittingrooms.user.js
Last active Aug 29, 2015
TF Fitting Room User Script
View tffittingrooms.user.js
// ==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 Jan 9, 2014
Mixpanel EmberJS Integration
View gist:8327824
//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 Dec 5, 2013
Heroku deploy failure
View gist:7799126
-----> 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 Aug 7, 2013
CSS to allocate space for jQuery Validate error messages
View gist:6173892
.field-validation-valid {
display: inline-block;
}
@mlb5000
mlb5000 / user-extensions.js
Created Dec 15, 2012
Selenium user extension to deal with Internet Explorer compatibility issues
View user-extensions.js
//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);
You can’t perform that action at this time.