See http://www.giacomovacca.com/2014/10/removing-all-unused-docker-containers.html.
docker rm $(docker ps -a -q)
docker rmi $(docker images -q --filter "dangling=true")
See http://www.giacomovacca.com/2014/10/removing-all-unused-docker-containers.html.
docker rm $(docker ps -a -q)
docker rmi $(docker images -q --filter "dangling=true")
Install CouchDB. This guide assumes 1.3.1. Set up an admin account.
Create the database required by NPM:
curl -X PUT http://admin:[email protected]:5984/registry
var legendary = require("legendary"); | |
test1(); | |
test2(); | |
test3(); | |
test4(); | |
test5(); | |
test6(); | |
test7(); |
This proposal specifies how cancelation is triggered, handled and propagated in a Promises/A+ promise library.
In addition to the terminology from Promises/A+ we use the following:
OperationCanceled
is an error used to reject canceled promises.cancel
.This proposal specifies how cancelation is triggered, handled and propagated in a Promises/A+ promise library.
In addition to the terminology from Promises/A+ we use the following:
OperationCanceled
is an error used to reject canceled promises.require([ | |
"dojo/Deferred" | |
], function(Deferred){ | |
var useError = 0; | |
var getError = function(name, useThisError){ | |
var msg = name + ' error'; | |
if(useError || useThisError){ | |
return function(e){ console.error(msg); d.reject(e); }; | |
} | |
}; |
// Supported modes: | |
// * non-modal (like dijit/popup, default) | |
// * modal (like dijit/Dialog) | |
// * underlay (like dijit/Dialog, off by default, specify underlay widget) | |
// * allowTab (TAB goes through the widget, off by default) | |
// * lockFocus (prevent TAB from going out of widget, by default on for modal, off for non-modal) | |
// * cancelOnEsc (close when ESC is hit, on by default) | |
// * cancelOnBlur (close when widget is blurred, on by default) | |
// Also supports `around`, `orient`, `x` and `y` and `padding` args from dijit/popup |
tell application "Terminal" | |
activate | |
set hasWindow to false | |
try | |
repeat with theWindow in windows | |
if (frontmost of theWindow) then | |
set hasWindow to true | |
end if | |
end repeat | |
end try |
#!/usr/bin/env node | |
require("child_process").exec("pbpaste", function(_, stdout){ | |
process.stdout.write(JSON.stringify(stdout.trim())); | |
}); |