Skip to content

Instantly share code, notes, and snippets.

View kyledecot's full-sized avatar
🤘

Kyle Decot kyledecot

🤘
View GitHub Profile

Keybase proof

I hereby claim:

  • I am kyledecot on github.
  • I am kyledecot (https://keybase.io/kyledecot) on keybase.
  • I have a public key whose fingerprint is 5109 3108 F6D9 6ED6 96E3 015D 2FAA 6252 D000 FCC7

To claim this, I am signing this object:

setTimeout(function() {
$.getJSON('http://example.com/sdlfjkflkjsadklj.json', function(results) {
var newCheckins = [];
for (result in results) {
newCheckins.push('...');
}
$('#checkins').replaceWith(newCheckins);
});
require "benchmark"
require "securerandom"
Benchmark.bm do |bm|
15.times do |t|
n = t * 10_000
a = [].tap do |array|
n.times { array << SecureRandom.uuid }
end
bm.report("#{n} uniq") { a.uniq }
### Keybase proof
I hereby claim:
* I am kyledecot on github.
* I am kyledecot (https://keybase.io/kyledecot) on keybase.
* I have a public key whose fingerprint is E0B5 BDBD C4F5 75AF 40C4 7F3A DE47 DFC1 9E16 712A
To claim this, I am signing this object: