Skip to content

Instantly share code, notes, and snippets.


Tyler J. Kuhn blackwatertepes

View GitHub Profile
blackwatertepes / render_images_bookmarketlet.js
Last active Nov 24, 2019
Render Images from Circle CI Artifacts
View render_images_bookmarketlet.js
ONE_LINER: Creates images from URL's in the Circle CI Artirfacts tab!
1. Turns '.png' url's in the Circle CI Artifacts tab into viewable images
a. Organizes the images into sections, based off of their test file names
b. Renders the images with spacing, and outlines based off of their test names
- Example: [beforeEach, some named screenshot, some other named screenshot, afterEach]
c. Adds buttons to scale up/down the images for individual sections
2. Acts as a bookmarket for your Circle CI project

Keybase proof

I hereby claim:

  • I am blackwatertepes on github.
  • I am blackwatertepes ( on keybase.
  • I have a public key ASCUEUtpiGL0EKIk0ISBbX7dobGZ5ghFaCA6vOfQ2CNrDAo

To claim this, I am signing this object:



Scripts in this repo...

  • eos.js (Includes the eosjs lib, and sets the basic configuration. Do not run this directly)
  • tail.js (Logs the EOS node transactions. Start this first, in its own window)
  • new_account.js (Creates a new account)

Getting Started

  • Replace the httpEndpoint in eos.js with your EOS node http address
  • Replace the private/public keys in the new_account.js file with your eosio account keys
  • Run tail.js to view transactions

Generating a distribution of report sizes

Jobs for the last # days

First, you'll need to generate a list of's from reports generated in the last # days. Run the following in Mixpanel...

SELECT job_id
FROM public.reports AS reports
WHERE reports.updated_at > '2015-06-29 00:00:00'
blackwatertepes / gist:9818837
Created Mar 27, 2014
Seeing Machines CSV script
View gist:9818837
# This converts the CSV generated from job #1 into an input CSV for job #2.
# usage: ruby csv_to_csv.rb <csv input filename> <csv output filename>
# if there is no output file given, one will automatically be generated, with the filename of 'converted_[input filename]'
require 'rubygems'
require 'csv'
require 'json'
View gist:9817004
#This converts a csv file to a slightly different csv.
#usage: ruby csv_to_csv.rb <csv input filename> <csv output filename>
# leaving out the output filename will result in a csv file with the same name as the input, and will have 'converted' in front of it.
require 'rubygems'
require 'csv'
require 'json'
View gist:8328340
Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT(sv.value) FROM signal_processor_signal_values AS sv WHERE sv.item_id = si' at line 1: SELECT `signal_processor_items`.`id` AS t0_r0, `signal_processor_items`.`processor_id` AS t0_r1, `signal_processor_items`.`created_at` AS t0_r2, `signal_processor_items`.`updated_at` AS t0_r3, `signal_processor_items`.`default` AS t0_r4, `signal_processor_items`.`paused` AS t0_r5, `signal_processor_signal_values`.`id` AS t1_r0, `signal_processor_signal_values`.`signal_id` AS t1_r1, `signal_processor_signal_values`.`value` AS t1_r2, `signal_processor_signal_values`.`created_at` AS t1_r3, `signal_processor_signal_values`.`updated_at` AS t1_r4, `signal_processor_signal_values`.`lat` AS t1_r5, `signal_processor_signal_values`.`lng` AS t1_r6, `signal_processor_signal_values`.`begin_at` AS t1_r7, `signal_processor_signal_values`.`end_at` AS t1_r8, `signal_processor_signal_valu
View gist:8186711
[preproduction][~] git log
commit 61cec4a71dbea09af2b4c8072216adfa2d8bcc4c
Author: Tyler J. Kuhn <>
Date: Fri Dec 6 11:51:09 2013 -0800
if notes have no body, they get deleted
[preproduction][~] git status
# On branch preproduction
nothing to commit, working directory clean
[preproduction][~] git pull --rebase origin preproduction
blackwatertepes / shortest_distance.rb
Created May 2, 2013
Shortest Driver Distance (Lyft)
View shortest_distance.rb
require 'rspec'
module Trip
def distance(a, b)
lat_dist = (a[:lat] - b[:lat]).abs
long_dist = (a[:long] - b[:long]).abs
Math.sqrt(lat_dist**2 + long_dist**2)
def route_distance(*points)
blackwatertepes / jeopardy.txt
Created Mar 15, 2013
A super long list of jeopardy questions
View jeopardy.txt
This file has been truncated, but you can view the full file.
3288-45 20002 IF THEY WERE SUPERHEROES (Alex: All of the correct responses will end in the letters "M-A-N"; example: Superman.) This 1940s Chicago Bears quarterback would have won games with incredible good fortune (Sid) Luckman 1600 $600
3264-50 20003 THE MEDIA ON TV This title character was the crusty and tough city editor of the Los Angeles Tribune Lou Grant 1800 $800
3032-28 20004 CYBER LIFE Mojo Nixon and the Rev. Horton Heat provided music for this CD-ROM game set in an Arkansas trailer park Redneck Rampage 500 $500
3329-2 20005 THERE GOES THE EMPIRE This nation colonized part of Somalia in the 19th century and invaded Ethiopia in the 20th Italy 100 $100
3279-3 20006 300 YEARS AGO In 1698, this comet discoverer took a ship called the Paramour Pink on the first purely scientific sea voyage Edmund Halley 100 $100
3109-31 20007 FILM BIOGRAPHIES In a 1992 film Jack Nicholson portrayed this labor leader Jimmy Hoffa 1200 $200