This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Builds an ECS Cluster", | |
"Parameters": {}, | |
"Resources": { | |
"SpotFleet": { | |
"Type": "AWS::EC2::SpotFleet", | |
"Properties": { | |
"SpotFleetRequestConfigData": { | |
"AllocationStrategy": "diversified", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Builds an ECS Cluster", | |
"Parameters": {}, | |
"Resources": { | |
"SpotFleet": { | |
"Type": "AWS::EC2::SpotFleet", | |
"Properties": { | |
"SpotFleetRequestConfigData": { | |
"AllocationStrategy": "diversified", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fnvplus = require('fnv-plus'); | |
var murmur = require('murmur'); | |
function collisionRate(bits) { | |
var hashes = {}; | |
var texts = 0; | |
var collisions = []; | |
var sample = 1e6; | |
console.time(bits + ' bits'); | |
while (texts < sample) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fnvplus = require('fnv-plus'); | |
function collisionRate(bits) { | |
var hashes = {}; | |
var texts = 0; | |
var collisions = []; | |
var sample = 1e6; | |
while (texts < sample) { | |
var text = Math.random().toString(36); | |
var hash = fnvplus.hash(text,bits).hex(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var https = require('https'); | |
var body = ''; | |
https.get('https://cloud-images.ubuntu.com/locator/ec2/releasesTable', function(res) { | |
res.on('data', function(chunk) { body += chunk; }); | |
res.on('end', finish); | |
}); | |
function finish() { | |
// Bad JSON -- has trailing comma. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"hash":"1047421","terms":["callejon de rojas","carrer santo tomas"]} | |
{"hash":"2080597","terms":["melin street","zelk lane"]} | |
{"hash":"2177846","terms":["gansz lane","wandel drive"]} | |
{"hash":"2857275","terms":["cavendish drice","elm wk"]} | |
{"hash":"4382878","terms":["profesora stanislawa lojasiewicza","tegel close"]} | |
{"hash":"9876508","terms":["beyer close","vanyo road"]} | |
{"hash":"10287211","terms":["billy london road","rua julio braido"]} | |
{"hash":"10760203","terms":["international drive","paul schuster strasse"]} | |
{"hash":"12498122","terms":["borslungvegen","sand hallow road"]} | |
{"hash":"13664186","terms":["turnuey ridge road","valley fork drive"]} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder