This file contains 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
{ | |
"index.html": [ | |
{ | |
"path": "js/jquery.js", | |
"etag": "123456" // MD5-sum of file or similar hash. Maybe the erver can make this up | |
}, | |
{ | |
"path": "js/underscore.js", | |
"etag": "123456" | |
} |
This file contains 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
PATH:=./node_modules/.bin/:${PATH} | |
PHONY: clean build | |
build: app/index.html | |
buildProduction \ | |
--root app \ | |
--outroot build \ | |
$< | |
This file contains 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
#dave .hide { | |
transition: all 0.2s; | |
-webkit-transform: translate(12px, 86px) scale(0.933, 1); | |
} | |
#dave:hover .hide { | |
-webkit-transform: none; | |
} |
This file contains 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
new AssetGraph({ root: 'path/to/website' }) | |
.loadAssets('index.html') | |
.populate({ | |
followRelations: Assetgraph.query.or({ | |
type: 'HtmlStyle' | |
}, | |
{ | |
type: 'HtmlAnchor', | |
hrefType: ['relative', 'rootRelative'] | |
} |
This file contains 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
munter at Peters-MacBook-Air in ~/git/cardio on master | |
$ cardio http://www.lonelyplanet.com/ > report.json | |
✔ http://www.lonelyplanet.com/ | |
✔ https://www.lonelyplanet.com/favicon.ico | |
✔ http://assets.staticlp.com/assets/icons/critical-601e7308f8b9de6ff4e5959ddc66cf40.css | |
✔ http://assets.staticlp.com/assets/common_core_no_font-928186620565d22d6ead4a614e110d0a.css | |
✔ http://assets.staticlp.com/assets/common_core_no_font_ie-08e8af4b81dd4d19840ba438c16cf48b.css | |
✔ http://assets.staticlp.com/assets/application-efb1d5aff5fcab6c6eb3d5c9b713cca6.css | |
✔ http://assets.staticlp.com/assets/application_ie-e96cb99e9b418b52e1c70786b86a7d84.css | |
✔ http://media.lonelyplanet.com/a/g/hi/t/f1df0ac7e602b5111d3aaefa29949491-store.jpg |
This file contains 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
function MyClass(otherInstance) { | |
var self = this; | |
self.options = { | |
loaded: false | |
}; | |
setTimeout(function () { | |
self.options.loaded = true; |
This file contains 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
define(function () { | |
'use strict'; | |
var buildMap = {}; | |
var transform = { | |
/** | |
* Reads the .jsx file synchronously and requires react-tools | |
* to perform the transform when compiling using r.js |
This file contains 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
Chromecast is connecting | |
Connected to 0/0 peers | |
Downloaded 0 Bytes (0 b/s) with 0 hotswaps | |
Uploaded 0 Bytes (0 b/s) | |
Potentially unhandled rejection [1] TypeError: Object [object Object] has no method 'start' | |
at /home/munter/git/peercast/node_modules/chromecast-player/chromecast-player.js:30:13 | |
at init (/home/munter/git/peercast/node_modules/chromecast-player/node_modules/when/lib/makePromise.js:38:5) | |
at new Promise (/home/munter/git/peercast/node_modules/chromecast-player/node_modules/when/lib/makePromise.js:26:53) | |
at promise (/home/munter/git/peercast/node_modules/chromecast-player/node_modules/when/when.js:100:10) | |
at findDevice (/home/munter/git/peercast/node_modules/chromecast-player/chromecast-player.js:17:10) |
This file contains 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
define(function (require) { | |
function findScrollParent(el) { | |
return $(el).scrollParent()[0]; // FIXME: scrollParent adds a jquery UI dependency | |
} | |
return function (element, margin) { | |
if (!element instanceof HTMLElement) { | |
throw new Error('scrollToMin: First argument must be a DOM node'); | |
} |
This file contains 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 AssetGraph = require('assetgraph-builder'); | |
var graph = new AssetGraph({ root: 'https://raw.githubusercontent.com/saulshanabrook/hamilton-energy/gh-pages/'}); | |
graph | |
.logEvents() | |
.loadAssets([ | |
'index.html', | |
'README.md' | |
]) |
OlderNewer