As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
config
docs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public
- Sep 07, 2020 update docs for
npm version
for (var i=0; i < 100000; i++) { | |
db.mass_insert.save({ | |
"first_name": "James", | |
"middle_name": "Richard", | |
"last_name": "Windsgate", | |
"email": "[email protected]" | |
}); | |
}; |
// HOWTO: load LABjs itself dynamically! | |
// inline this code in your page to load LABjs itself dynamically, if you're so inclined. | |
(function (global, oDOC, handler) { | |
var head = oDOC.head || oDOC.getElementsByTagName("head"); | |
function LABjsLoaded() { | |
// do cool stuff with $LAB here | |
} |
<html> | |
<head> | |
<script src="/javascripts/CryptoJS/rollups/aes.js"></script> | |
<script src="/javascripts/CryptoJS/components/mode-cfb-min.js"></script> | |
<script src="/javascripts/encrypt.js"></script> | |
</head> | |
<body> | |
</body> | |
</html> |
# turn dict into an object that allows access to nested keys via dot notation | |
# from http://stackoverflow.com/questions/3797957/python-easily-access-deeply-nested-dict-get-and-set | |
# made three modifications: | |
# --added `get()` method | |
# --added `if not dict.__contains__...` to `__contains__()` | |
# --can now accept None as key | |
class dotdictify(dict): | |
def __init__(self, value=None): | |
if value is None: | |
pass |
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