This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
disposableTodoNames = [ | |
"Clean out dishwasher filter", | |
"Clean out toaster crumb tray", | |
"Clean refrigerator", | |
"🐱Clean Cat Box" | |
]; | |
function isTrashable(todo) { | |
return disposableTodoNames.indexOf(todo.name()) > -1 || | |
(todo.area().name().indexOf('Shopping') > -1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteCond %{SERVER_PORT} ^80$ | |
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var casper = require('casper').create(); | |
casper.options.viewportSize = { width: 1280, height: 1024 }; | |
casper | |
.start('http://www.craftbeer.com/beer-styles', function() { | |
this.evaluate(function() { | |
$('#social-links').remove(); | |
}); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ "Sorcerer's Semicolon", | |
"Chamber of Closures", | |
"Transpiler of Azkaban", | |
"Goblet of Cruft", | |
"Order of the Variables", | |
"Half-Right Kludge", | |
"Deathly For-Loop" | |
].map(i => `Harry Potter and the ${i}`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// in themes/ | |
$background_color: #E22; | |
$foreground_color: #ded; | |
$text_color: #030; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var casper = require('casper').create(), | |
username = casper.cli.args[0], | |
passwod = casper.cli.args[1], | |
UNTAPPD = 'https://untappd.com'; | |
// in which we get all the beers | |
// in which we assume `$` == `jQuery` already on this page | |
function collectBeers(UNTAPPD) { | |
var beers = [], | |
items = $('.beer-item'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
function freeze(o) { | |
if(!Object.isFrozen(o)) { | |
Object.freeze(o); | |
} | |
return o; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var favoriteThings = ['coffee', 'kittens', 'bacon sandwiches']; | |
var out; | |
for (var i = 0; i < favoriteThings.length; i++) { | |
out += favoriteThings[i] + ', '; | |
} | |
console.log('My favorite things are: ' + out); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Paul Irish talking about Chrome DevTools Timeline's new Frame Mode | |
http://www.youtube.com/watch?v=Vp524yo0p44 | |
// Chrome Office Hours - troubleshooting paint times | |
http://www.youtube.com/watch?v=z0_jD8nO5Zw | |
// Break time to glass - youtube | |
http://youtu.be/Il4swGfTOSM | |
// Avoiding Unnecessary Paints |