Skip to content

Instantly share code, notes, and snippets.

View dbenchi's full-sized avatar
😎
JS everywhere

David BENCHI dbenchi

😎
JS everywhere
View GitHub Profile
@dbenchi
dbenchi / snapshotAll.js
Last active November 25, 2016 13:54
snapshotAll.js
GruntfileUtils.prototype.snapshotAll = function() {
const grunt = this.grunt;
return function() {
const done = this.async();
const docker = new Docker(dockerodeConfig()[grunt.option('docker')]);
docker
.listContainers((err, containers) => {
containers.forEach(containerInfo => {
<div class="panel panel-default swipe" swipe-left="onSwipeLeft" swipe-right="onSwipeRight">
<div class="panel-body">
Swipe left or right this beautiful panel!
</div>
</div>
<div class="swipe" swipe-left="doSomething" swipe-right="doAnotherSomething" left-template="leftTemplate.html" right-template="rightTemplate.html">
Swipe me!
</div>
<div class="panel panel-default swipe" swipe-left="delayedClose" swipe-right="delayedClose" left-template="path/to/your/leftTemplate.html" right-template="path/to/your/rightTemplate.html">
<div class="panel-body">
Again with some template customization!
</div>
</div>
<div class="custom-template-left option-item start">
<img src="img/swipe_right.svg"/>
</div>
{
// Name of configuration; appears in the launch configuration drop down menu.
"name": "Mocha tests",
"request": "launch",
// Type of configuration. Possible values: "node", "mono".
"type": "node",
// Workspace relative or absolute path to the program.
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
// Automatically stop program after launch.
"stopOnEntry": false,
{
"name": "Debug karma tests in Chrome",
"type": "chrome",
"request": "attach",
"port": 9222,
"sourceMaps": true,
"webRoot": "${workspaceRoot}",
}
customLaunchers: {
Chrome_with_debugging: {
base: 'Chrome',
flags: ['--remote-debugging-port=9222'],
debug: true
}
},
{
"version": "0.1.0",
"taskName": "karma",
"command": "karma",
"args": [
"start"
],
"options": {
"env": {
MONGOPORT=23500
BASEDIR=`pwd`
# Update tools
(cd repo && composer update)
# Run code style checker
./repo/vendor/bin/phpcs -p --standard=repo/vendor/sabre/dav/tests/phpcs/ruleset.xml --report-checkstyle=checkstyle.xml repo/lib/
# Cleanup