Fast, efficient hash
char *str = "Slash";
unsigned long long hash = slash(str);| var crypto = require('crypto'); | |
| var apiKey = function(cb) { | |
| crypto.randomBytes(7, function (err, bytes) { | |
| key = new Buffer((new Date().valueOf()) + (bytes).toString('hex')).toString('base64'); | |
| cb(key); | |
| }); | |
| } | |
| const createTable = function(item, length) { | |
| let table = new Array(length); | |
| table[0] = 0; | |
| for(let i = 1; i < length; i++) { | |
| var section = item.substring(0, i + 1); | |
| var sectionLength = section.length; | |
| var val = 0; | |
| for(let j = sectionLength - 1; j > 0; j--) { |
| (function(root, factory) { | |
| /* ======= Global Moon Bars ======= */ | |
| (typeof module === "object" && module.exports) ? module.exports = factory() : root.MoonBars = factory(); | |
| }(this, function() { | |
| var pad = function(section) { | |
| if(section.length === 1) { | |
| return "0" + section; | |
| } else { | |
| return section; |
| from slackclient import SlackClient | |
| from random import randint | |
| import re | |
| import time | |
| import sqlite3 | |
| import os | |
| userRE = re.compile("<@([\w\d]+)>") | |
| db = sqlite3.connect("Galaxy.db") |
I hereby claim:
To claim this, I am signing this object: