Skip to content

Instantly share code, notes, and snippets.

View wuputah's full-sized avatar

Jonathan Dance (JD) wuputah

View GitHub Profile

Hydra Performance Microbenchmark

Important: This microbenchmark is not intended to represent any real workload. Compression ratios, and therefore performance, will depend heavily on the specific workload. This is only for the purpose of illustrating a "columnar friendly" contrived workload that showcases the benefits of columnar.



The Culture Clash, Jean Donaldson

(2005, 2nd ed.)

Jean is a pioneer in her field, and this book is her magnum opus. Truly groundbreaking work. Must read. However, the book is best read cover-to-cover and makes a poor reference, until the last chapter where Jean spells out step-by-step training guides. That said, Jean's focus is on training and less on the immediate concerns you will have when you get a puppy, and while it certainly covers socialization, housebreaking and initial concerns about your first days with your pup are not emphasized. However, some of the socialization suggestions are unrealistic for those of us who are not so extroverted.

Train Your Dog Like a Pro, Jean Donaldson


View qpromise.rb
require 'thread'
def QPromise(*args, &block)*args, &block)
class QPromise < BasicObject
# Allows you to change the defaults, e.g.:
# QPromise.config[:thread_limit] = 100
View 1-xp.rb
MAX_CP = 750
scaling_factor = MAX_CP ** 0.995
xp = ->(level) { ((level / scaling_factor) + 0.085) * 400_000 }
for i in 10..MAX_CP
puts "#{i}: #{xp.(i).round}"
View iracing-adblock.js
// ==UserScript==
// @name iRacing adblock
// @namespace
// @version 1.0
// @description Disable advertising in the background on the iRacing member site.
// @match*
// @require
// @grant none
// ==/UserScript==
(function($) {
View gist:4feb2215a2825d96639b34cfe772cccb
### Keybase proof
I hereby claim:
* I am wuputah on github.
* I am wuputah ( on keybase.
* I have a public key ASCcjtRJCYv4DOgWdL6vLPD79Jp2eADuT0ubzbMpPM0l9wo
To claim this, I am signing this object:
View time-to_f.rb
if { % 1000 }.sum == 0
puts "nsec precision not available"
a = 0
10_000_000.times do
t =
d = ( sprintf("%.9f", t.to_f).split('.')[1].to_i - t.nsec ).abs
# edge case around 0 nsec where .to_f results in .999999999
wuputah /
Last active March 30, 2017 06:09
My letter to my family about the changes in broadband privacy.

Most outlets are not getting this story right. They don't understand the technical details behind what can be tracked, sold, or how your ISP (Internet Service Provider) can advertise to you.

What is changing?

Actually, nothing. The Obama-era rule did not go into effect, but ISPs may have stopped efforts to sell this data due to the new FCC regulation. I would like to think ISPs are nervous about making their customers angry, and realize they could face backlash if they sell your data. That means that all of this is already true, yet you don't get this type of advertising right now (as far as you know).

Note that this also applies to your mobile data carrier anytime you use the Internet on your smartphone (not over wifi, though whatever wifi network you are connected to cannot be trusted either). However, mobile carriers may be subject to different (older) regulations since they are a "telephone" company. I am a computer nerd, not a telecommunications lawyer.

What can my ISP track about me?



What I want to do this year




wuputah / hosts
Created October 21, 2016 18:13
View hosts