Skip to content

Instantly share code, notes, and snippets.


Christopher Gwizdala christowiz

View GitHub Profile
View console.js
// time and time end
let total = 0;
for (let j = 0; j < 10000; j++) {
total += j
console.log("Result", total);
// Memory
View git-rewrite-to-subfolder
# We need the TAB character for SED (Mac OS X sed does not understand \t)
TAB="$(printf '\t')"
function abort {
echo "$(tput setaf 1)$1$(tput sgr0)"
exit 1
christowiz /
Created Dec 13, 2018 — forked from bastman/
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see:

$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
View scroller.js
'use strict';
// * Scroll optimization using window.requestAnimationFrame
// *
// *
// *
// * @module scroller
// * @param {Object} element DOM element to attach listener to
// * @param {Func} cb Callback method to return event object
// * @returns {Func} Method to remove event listener from element
You can’t perform that action at this time.