I hereby claim:
- I am pcanterini on github.
- I am pedrobr (https://keybase.io/pedrobr) on keybase.
- I have a public key ASBq_MMkkZTFgkbWrj2VKieWUSg5oXZuWap53VouW49OKAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi -f $(docker images -q) |
{ | |
"updated_at": "2016-10-19T20:16:55Z", | |
"type": "ts", | |
"tracks": [{ | |
"url_hash": "fc88ab7623ceb58a7ee77a7ea2f077462ab39d725645881e02a4308566d52719", | |
"url": "http://bleacherreport.com/articles/2670568-2016-17-nba-season-preview-predicting-who-will-be-this-years-breakout-star", | |
"updated_at": "2016-10-19T15:42:01Z", | |
"tag": { | |
"unique_name": "nba", | |
"tag_id": 19, |
##Setup your server (this would ideally be done with automated provisioning)
npm install -g forever
##Install flightplan
npm install -g flightplan
npm install flightplan --save-dev
// Prototypal OO with ES6 | |
// Eric Elliott's example | |
let animal = { | |
animalType: 'animal', | |
describe () { | |
return `An ${this.animalType}, with ${this.furColor} fur, | |
${this.legs} legs, and a ${this.tail} tail.`; | |
} |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
elem.clientLeft
, elem.clientTop
, elem.clientWidth
, elem.clientHeight
elem.getClientRects()
, elem.getBoundingClientRect()
import test from 'tape'; | |
// For each unit test you write, | |
// answer these questions: | |
test('What component aspect are you testing?', assert => { | |
const actual = 'What is the actual output?'; | |
const expected = 'What is the expected output?'; | |
assert.equal(actual, expected, | |
'What should the feature do?'); |
#!/bin/bash | |
AUTH_EMAIL='your@email' # dnsimple account email address | |
AUTH_TOKEN='your-api-token' # dnsimple api token | |
DOMAIN_ID='yourdomain.com' # domain name or id | |
RECORD_ID='12345' # record id to update | |
IP="`curl http://icanhazip.com/`" | |
curl -H "X-DNSimple-Token: $AUTH_EMAIL:$AUTH_TOKEN" \ | |
-H "Accept: application/json" \ |