As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
configdocs 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
| var crypto = require('crypto'), | |
| saltLength = 10, | |
| algorithm = 'sha1'; | |
| function hash(password) { | |
| var salt = crypto.randomBytes(10).toString('binary'), | |
| hash = crypto.createHmac(algorithm, salt).update(password).digest(); | |
| return { hash: hash, salt: salt }; | |
| } |
| license: gpl-3.0 |
| license: gpl-3.0 |
| #!/bin/bash | |
| # CentOS rbenv system wide installation script | |
| # Forked from https://gist.github.com/1237417 | |
| # Installs rbenv system wide on CentOS 5/6, also allows single user installs. | |
| # Install pre-requirements | |
| yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \ | |
| make bzip2 autoconf automake libtool bison iconv-devel git-core |
| /** | |
| * Underscore function that combines _.find and _.indexOf | |
| * Source: https://github.com/documentcloud/underscore/issues/413 | |
| * | |
| * _.indexBy([2, 6, 4, 7, 9, 0], function(num) { | |
| * return num % 2 === 1; | |
| * }); | |
| * => 3 | |
| */ |
| #!/bin/sh | |
| ## you'll have to do a couple extra steps to get this running | |
| ## there are probably other ways to handle svncanboot, but this is from the linux forum | |
| set -e | |
| if | |
| touch /etc/_testr_file | |
| then |
| function love.load() | |
| config = { | |
| initial_x = 200, | |
| initial_y = 400, | |
| step = 500, | |
| numStars = 100, | |
| starSpeedFactor = 1 | |
| } | |
| spaceship = { |