Skip to content

Instantly share code, notes, and snippets.

View freerobby's full-sized avatar

Robby Grossman freerobby

View GitHub Profile
Napkin math on if those 6.8M people didn't get the J&J vaccine:
"During March 1–28, 2020, the overall laboratory-confirmed COVID-19–associated hospitalization rate was 4.6 per 100,000 population."
https://www.cdc.gov/mmwr/volumes/69/wr/mm6915e3.htm
6,800,000 / 100,000 * 4.6
=> 312.8 hospitalizations.
"Of patients in this cohort, 55 593 (28.9%) were admitted to the ICU"
https://jamanetwork.com/journals/jamanetworkopen/fullarticle/2777028
312.8 * 0.289
“Law” in a judicial setting is simply the material, in the broadest sense, out of which judges fashion their decisions. Because the materials of legalist decision making fail to generate acceptable answers to all the legal questions that American judges are required to decide, judges perforce have occasional—indeed rather frequent—recourse to other sources of judgment, including their own political opinions or policy judgments, even their idiosyncrasies.
Posner, Richard A.. How Judges Think (Pims - Polity Immigration and Society Series) (p. 9). Harvard University Press. Kindle Edition.
The true middle ground, as long ago explained by Roscoe Pound, is a tripartite conception of law as legal doctrines (rules and standards), techniques for deriving and applying doctrines (techniques such as stare decisis—decision according to precedent—which often means distinguishing or overruling a precedent), and social and ethical (in a word, policy) views.
To which should be added the exercise, in certain circumstances,
This file has been truncated, but you can view the full file.
TOP SECRET
Nofqrn
^CLASSIFIED'
Senate Select Comiiiittee on Infelligeoee
Committee Study ofthe CentralIntelligenceAgmcy's Detention and Interrogation Program
SBg=53
Foreword by Senate Select Committee on Intelligence Chairman Bianne Feinstein Findings and Concliisioiis
Executive Summary
Approved Deeember 13,,2012 Updatedfor Release April 3, 2014 Deciassificatiori Revisions December 3, M l 4
TQPSECRE^ m¥Qfm UNCLASSIFIED
@freerobby
freerobby / gist:8741000
Created January 31, 2014 19:14
When heatmaps are wrong.
Our heatmaps are generated via sets of events. The notable ones are "start" and
"stop" events.
Let's say we have a 60-second video with some events attached to it.
A video watched all the way through exactly once looks like this:
a = start
z = stop
|------------------------------------------------------------|
a z
# First split the keys into a bunch of files:
# ubuntu@rails01:/mnt/links$ split -l 100000 -d -a 4 links_dump.dat
current_file = 4
def get_filenames(base_path, num_files) # Remember, num_files= last file # + 1
filenames = []
num_files.times do |num|
num = num.to_s
while num.length < 4 do
jruby-1.7.1 :001 > User == "User".constantize
=> true
jruby-1.7.1 :002 > defined?(User)
=> "constant"
jruby-1.7.1 :003 > defined?("User".constantize)
=> "method"
@freerobby
freerobby / export_bucket_keys.rb
Last active December 10, 2015 11:59
Exports all keys in a riak bucket into a newline-delimited file.
# This function uses net::http streaming and the Riak HTTP endpoint
# to export all keys in a riak bucket into a newline-delimited file.
require 'json'
require 'net/http'
RIAK_ROOT = 'http://localhost:8098'
# bucket: The bucket to export
# path: The folder into which to put the output file
17:52:14,380 WARN [com.arjuna.ats.arjuna] (Transaction Reaper) ARJUNA012117: TransactionReaper::check timeout for TX 0:ffff0a7ca6e9:-ac17317:502001c2:1dd0 in state RUN
17:52:14,626 WARN [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012095: Abort of action id 0:ffff0a7ca6e9:-ac17317:502001c2:1dd0 invoked while multiple threads active within it.
17:52:14,679 WARN [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012108: CheckedAction::check - atomic action 0:ffff0a7ca6e9:-ac17317:502001c2:1dd0 aborting with 1 threads active!
17:52:14,802 WARN [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012121: TransactionReaper::doCancellations worker Thread[Transaction Reaper Worker 0,5,main] successfully canceled TX 0:ffff0a7ca6e9:-ac17317:502001c2:1dd0
17:52:14,988 WARN [com.arjuna.ats.arjuna] (Transaction Reaper) ARJUNA012117: TransactionReaper::check timeout for TX 0:ffff0a7ca6e9:-ac17317:502001c2:1dd0 in state COMPLETE
17:53:20,244 WARN [com.arjuna.ats.arjuna] (Thread-0 (Hor
17:14:56,342 WARN [org.hornetq.core.paging.cursor.impl.PageSubscriptionImpl] (Thread-15 (HornetQ-server-HornetQServerImpl::serverUUID=e3277541-da78-11e1-855f-296c10b55f7f-1810101068)) Couldn't locate page transaction 529656, ignoring message on position PagePositionImpl [pageNr=28, messageNr=754, recordID=0] on address=jms.queue./queues/torquebox/current-knob/tasks/torquebox_backgroundable queue=jms.queue./queues/torquebox/current-knob/tasks/torquebox_backgroundable
17:14:56,342 WARN [org.hornetq.core.paging.cursor.impl.PageSubscriptionImpl] (Thread-15 (HornetQ-server-HornetQServerImpl::serverUUID=e3277541-da78-11e1-855f-296c10b55f7f-1810101068)) Couldn't locate page transaction 529661, ignoring message on position PagePositionImpl [pageNr=28, messageNr=755, recordID=0] on address=jms.queue./queues/torquebox/current-knob/tasks/torquebox_backgroundable queue=jms.queue./queues/torquebox/current-knob/tasks/torquebox_backgroundable
17:14:56,342 WARN [org.hornetq.core.paging.cursor.impl.PageSubscriptionImpl] (T
ubuntu@ip-10-123-21-233:/var/log/riak$ riak-admin member_status
Attempting to restart script through sudo -u riak
================================= Membership ==================================
Status Ring Pending Node
-------------------------------------------------------------------------------
valid 0.0% 0.0% '[email protected]'
valid 37.5% 25.0% '[email protected]'
valid 29.7% 25.0% '[email protected]'
valid 29.7% 25.0% '[email protected]'
valid 3.1% 25.0% '[email protected]'