Skip to content

Instantly share code, notes, and snippets.

View sebdeckers's full-sized avatar
🐑
Hacking on Commons Host

Sebastiaan Deckers sebdeckers

🐑
Hacking on Commons Host
View GitHub Profile
@sebdeckers
sebdeckers / selectors.css
Created April 14, 2013 11:29
Example of selectors for every content element
header {
}
header > h1 {
}
header > cite {
}
header > img {
}
section {
}
@sebdeckers
sebdeckers / spec.txt
Created June 2, 2013 10:47
Endpoints draft
GET /organizations/
Response: [{
id: String,
name: String,
email: String,
}*]
GET /walls/?organization=:id
Response: [{
id: String,
@sebdeckers
sebdeckers / promise-test.js
Created June 12, 2014 10:23
Playing with Promise syntax
require('es6-shim');
function doSomething() {
console.log('doSomething');
return Promise.resolve();
}
function doMore() {
console.log('doMore');
return Promise.reject(Error('failed'));
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sebdeckers
sebdeckers / .gitignore
Last active August 29, 2015 14:20
JSPM error with uri-template-lite
jspm_packages/
node_modules/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sebdeckers
sebdeckers / README.md
Last active August 29, 2015 14:22
Codecov / Coverify Example

Sample Output

$ npm run -s report
COVERAGE "c:\\Users\\seb\\Documents\\GitHub\\cbas\\test\\foo.js" [[19,39],[42,47],[42,47]]
COVERED "c:\\Users\\seb\\Documents\\GitHub\\cbas\\test\\foo.js" 2
COVERED "c:\\Users\\seb\\Documents\\GitHub\\cbas\\test\\foo.js" 1
COVERED "c:\\Users\\seb\\Documents\\GitHub\\cbas\\test\\foo.js" 0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sebdeckers
sebdeckers / coverage-final.json
Created June 23, 2015 14:21
Surfboard coverage
{
"c:\\s\\test\\mocha\\mig-button.js":{"path":"c:\\s\\test\\mocha\\mig-button.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1},"b":{"1":[0,1],"2":[1,1]},"f":{"1":1,"2":1,"3":1,"4":1,"5":1},"fnMap":{"1":{"name":"_interopRequireDefault","line":5,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}},"skip":true},"2":{"name":"(anonymous_2)","line":15,"loc":{"start":{"line":6,"column":23},"end":{"line":6,"column":29}}},"3":{"name":"(anonymous_3)","line":18,"loc":{"start":{"line":9,"column":9},"end":{"line":9,"column":15}}},"4":{"name":"(anonymous_4)","line":22,"loc":{"start":{"line":13,"column":22},"end":{"line":13,"column":28}}},"5":{"name":"(anonymous_5)","line":25,"loc":{"start":{"line":16,"column":27},"end":{"line":16,"column":33}}}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"l
@sebdeckers
sebdeckers / questions-actor-player.js
Created November 19, 2015 14:39
Classes in JS Q&A
class Actor {
constructor (x, y, image = sun1) {
this.x = x
this.y = y
this.image = image
}
render () {
context.drawImage(this.image, this.x, this.y)
}
}