Everything listed within this document is worth watching/reading and wont be a waste of time (promise). ^^
- Greg Young
- Eric Evans
// ported from: | |
http://stackoverflow.com/questions/2140787/select-random-k-elements-from-a-list-whose-elements-have-weights | |
// each node in the heap has a value, weight, and totalWeight | |
// the totalWeight is the weight of the node plus any children | |
var Node = {}; | |
var newNode = function (value, weight, totalWeight) { | |
var node = Object.create(Node); | |
node.value = value; | |
node.weight = weight; |
//phoneGap HTML5 SQLite database schema migration example | |
var db = null; | |
var current_migration = null; | |
var current_schema_version = null; | |
// keep migration version order | |
var db_migrations = { | |
v1: { | |
version: "1.0", | |
up: function(tx) { |
Everything listed within this document is worth watching/reading and wont be a waste of time (promise). ^^
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
⚠ This post is fairly old. I don't keep it up to date. Be sure to see comments where some people have posted updates
What this will cover
www.website.com
to website.com
index.html
)