I hereby claim:
- I am mpneuried on github.
- I am mpneuried (https://keybase.io/mpneuried) on keybase.
- I have a public key ASA0zWbq3uNz6NmYusSTSfmGI6awm8egCVo6ptn7GWx0nAo
To claim this, I am signing this object:
hashFnv32a = (str, asString, seed) -> | |
#jshint bitwise:false | |
i = undefined | |
l = undefined | |
hval = (if (seed is `undefined`) then 0x811c9dc5 else seed) | |
i = 0 | |
l = str.length | |
while i < l | |
hval ^= str.charCodeAt(i) |
/* | |
INSTALL: | |
Init Testcase by using the module rsmq-cli: | |
$ rsmq -n wildcard create -q wildlife | |
$ rsmq -n wildcard create -q wildpark | |
$ rsmq -n wildcard create -q wildcard | |
$ rsmq -n wildcard create -q wilderness | |
$ rsmq -n wildcard create -q safari |
I hereby claim:
To claim this, I am signing this object:
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
function list-ps(){ | |
ps -A | grep $1 | awk '{ if ($4 != "grep"){a = ( $1 " " a ) }}END{print a}' | |
} | |
function kill-ps(){ | |
ps -A | grep $1 | awk '{ if ($4 != "grep"){a = ( $1 " " a ) }}END{print a}' | xargs kill -9 | |
} |
# install a new Mac | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# install services | |
brew install node memcached redis mysql caskroom/cask/brew-cask | |
# install tools | |
brew cask install sitesucker bettertouchtool dropbox synology-assistant synology-photo-station-uploade vagrant vagrant-manager virtualbox | |
# install general apps | |
brew cask install google-chrome firefox libreoffice macdown skype audacity teamviewer inkscape | |
# install dev apps |
hashFnv32a = (str) -> | |
#jshint bitwise:false | |
hval = 0x811c9dc5 | |
i = 0 | |
l = str.length | |
while i < l | |
hval ^= str.charCodeAt(i) | |
hval += (hval << 1) + (hval << 4) + (hval << 7) + (hval << 8) + (hval << 24) | |
i++ |
# import the external modules | |
_ = require('lodash')._ | |
extend = require('extend') | |
colors = require('colors') | |
config = require('./config') | |
# # Basic Module | |
# ### extends [EventEmitter] | |
# Basic module to handle errors and initialize modules |
### | |
EXAMPLE USAGE | |
parentColl = new Backbone.Collection.Extended() | |
# by Array | |
subCollA = parentColl.sub( [ 1, 2, 3 ] ) | |
# or by Object | |
subCollO = parentColl.sub( { name: "Foo", age: 42 } ) |
### | |
EXAMPLE USAGE | |
testColl = new Backbone.Collection.Extended() | |
# PROMISE USAGE | |
# define handlers | |
fnSuccess = -> | |
console.log( "SUCCESS", arguments ) |
### USEAGE | |
crypto = require( "./crypto" )() | |
_crypted = crypto.crypt( "myPassowrd", "data123" ) | |
crypto.decrypt( "myPassowrd", _crypted ) # data123 | |
### | |
crypto = require( "crypto" ) |