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
function love.load() | |
config = { | |
initial_x = 200, | |
initial_y = 400, | |
step = 500, | |
numStars = 100, | |
starSpeedFactor = 1 | |
} | |
spaceship = { |
#!/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 |
/** | |
* 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/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 |
license: gpl-3.0 |
license: gpl-3.0 |
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 }; | |
} |
// Simple, tiny, dumb module definitions for Browser JavaScript. | |
// | |
// What it does: | |
// | |
// * Tiny enough to include anywhere. Intended as a shim for delivering | |
// browser builds of your library to folks who don't want to use script loaders. | |
// * Exports modules to `__modules__`, a namespace on the global object. | |
// This is an improvement over typical browser code, which pollutes the | |
// global object. | |
// * Prettier and more robust than the |
(function () { | |
App.Views.PopoverView = Backbone.View.extend({ | |
initialize: function (options) { | |
_.bindAll(this, "render", "setContent", "show", "hide", "toggle", "destroy", "remove"); | |
this.offsetTop = 30; | |
this.offsetLeft = 0; |