https://github.com/marcelomdevasconcellos/emensageria
$ docker network create -d bridge postgres-networkhttps://github.com/marcelomdevasconcellos/emensageria
$ docker network create -d bridge postgres-network| $ FILE=/some/path/to/file.txt | |
| ################################### | |
| ### Remove matching suffix pattern | |
| ################################### | |
| $ echo ${FILE%.*} # remove ext | |
| /some/path/to/file | |
| $ FILE=/some/path/to/file.txt.jpg.gpg # note various file exts |
| #!/bin/bash | |
| echo "-- New Migration" > "`dirname $0`/../src/main/resources/db/migrations/V`date +%s`__$1.sql" |
using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
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.offsetParentelem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeightelem.getClientRects(), elem.getBoundingClientRect()Just migrated it from Codepen.io to markdown. Credit goes to David Conner.
| Working with DOM | Working with JS | Working With Functions |
|---|---|---|
| Accessing Dom Elements | Add/Remove Array Item | Add Default Arguments to Function |
| Grab Children/Parent Node(s) | Add/Remove Object Properties | Throttle/Debounce Functions |
| Create DOM Elements | Conditionals |
curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET "http://hostname/resource"curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET "http://hostname/resource"Based off of: http://docs.sequelizejs.com/en/1.7.0/articles/express/
Create and initialize your a directory for your Express application.
$ mkdir sequelize-demo| { | |
| "api-cors-header": "", | |
| "authorization-plugins": [], | |
| "bip": "", | |
| "bridge": "", | |
| "cgroup-parent": "", | |
| "cluster-store": "", | |
| "cluster-store-opts": {}, | |
| "cluster-advertise": "", | |
| "debug": true, |