Skip to content

Instantly share code, notes, and snippets.

View blackwatertepes's full-sized avatar
Relaxing

Tyler J. Kuhn blackwatertepes

Relaxing
View GitHub Profile
@blackwatertepes
blackwatertepes / gist:9818837
Created March 27, 2014 21:06
Seeing Machines CSV script
# 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'
@blackwatertepes
blackwatertepes / report_size.md
Last active August 29, 2015 14:24
Job Report Sizes

Generating a distribution of report sizes

Jobs for the last # days

First, you'll need to generate a list of job.id'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'

Introduction

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

Keybase proof

I hereby claim:

  • I am blackwatertepes on github.
  • I am blackwatertepes (https://keybase.io/blackwatertepes) on keybase.
  • I have a public key ASCUEUtpiGL0EKIk0ISBbX7dobGZ5ghFaCA6vOfQ2CNrDAo

To claim this, I am signing this object:

@blackwatertepes
blackwatertepes / render_images_bookmarketlet.js
Last active November 24, 2019 22:50
Render Images from Circle CI Artifacts
/*
ONE_LINER: Creates images from URL's in the Circle CI Artirfacts tab!
FULL_DESCRIPTION:
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
@blackwatertepes
blackwatertepes / main.go.tmp
Last active April 22, 2022 19:20
Search Units - Code Templates
// FINISH ME
type Unit struct {
Id int
Location Location
UserRating float64
PriceInCents int
}
type Location struct {
Lat float64