Skip to content

Instantly share code, notes, and snippets.

View caseyhoward's full-sized avatar

Casey Howard caseyhoward

View GitHub Profile
FROM node
RUN curl -o- -L https://yarnpkg.com/install.sh | bash
RUN yarn global add elm@0.19.0-bugfix2
RUN yarn global add elm-test
RUN yarn global add elm-format
RUN yarn global add create-elm-app
COPY . /app
WORKDIR /app
// This is a hack for stubbing functions with arguments in jasmine2
function With(stub, values) {
this.stub = stub;
this.values = values;
}
With.prototype.andReturn = function (returnValue) {
this.stub.addStubbedCall(this.values, returnValue);
};
@caseyhoward
caseyhoward / ptfix.js
Created October 21, 2015 22:46 — forked from trystan/ptfix.js
Fix PivotalTracker
// Use this with the Custom Javascript For Websites
// plugin for Chrome to fix PivotalTracker
function fixIt(){
jQuery('h3[title="icebox"],label[class="icebox"]')
.attr("title","graveyard")
.children(1)
.text("Graveyard");
var horizon = jQuery('.story_name:contains("Event Horizon")')
@import url("https://gist.github.com/caseyhoward/7124460/raw/29f31f2fe16591a88178f1d79296f0bd3dbcc969/imported.css");
/* .imported-styles {
* background-image: url('/imported.png');
* }
*/
@media (max-device-width: 0px) {
.hidden-by-link-tag-media-query {
display: none;
}
@import url("https://gist.github.com/caseyhoward/7124460/raw/29f31f2fe16591a88178f1d79296f0bd3dbcc969/imported.css");
/* .imported-styles {
* background-image: url('/imported.png');
* }
*/
@media (max-device-width: 0px) {
.hidden-by-link-tag-media-query {
display: none;
}
@import "https://gist.github.com/caseyhoward/7124460/raw/29f31f2fe16591a88178f1d79296f0bd3dbcc969/imported.css"
/* .imported-styles {
* background-image: url('/imported.png');
* }
*/
@media (max-device-width: 1px) {
.hidden-by-link-tag-media-query {
display: none;
}
@import "https://gist.github.com/caseyhoward/7124460/raw/29f31f2fe16591a88178f1d79296f0bd3dbcc969/imported.css"
/* .imported-styles {
* background-image: url('/imported.png');
* }
*/
@media (max-device-width: 0px) {
.hidden-by-link-tag-media-query {
display: none;
}
.imported-styles {
background-image: url('/imported.png');
}
.something { background-image: url('/test.png'); }
img { background-image: url('/test.png'); }