Skip to content

Instantly share code, notes, and snippets.

View ashtom's full-sized avatar
:octocat:
the job is not to know; it's to become

Thomas Dohmke ashtom

:octocat:
the job is not to know; it's to become
View GitHub Profile
Currently reading:
All Systems Red by Martha Wells
Recently read:
TED Talks by Chris J. Anderson
🚶‍♂️ 23km █████████████▏░░░░░░
‍🏃‍♂️ 12km ██████▌░░░░░░░░░░░░░
🚴‍♂️ 0km ░░░░░░░░░░░░░░░░░░░░
34km total
@ashtom
ashtom / hadge.rb
Created November 6, 2021 22:59
Update a pinned gist to show your currently workout stats
require 'csv'
require 'octokit'
require 'optparse'
class DirectImporter
DISPLAYED_ACTIVITIES = {
Running: '‍🏃‍♂️',
Walking: '🚶‍♂️',
Hiking: '🥾',
Cycling: '🚴‍♂️',
@ashtom
ashtom / gist:486d1e3aaca45df63dc70984dfe98514
Created October 3, 2021 18:53
this space is intentionally left blank
🏃‍♂️ 297.85 km ███████████████████
🏊‍♂️ 0.00 km ░░░░░░░░░░░░░░░░░░░
🚴‍♂️ 0.00 km ░░░░░░░░░░░░░░░░░░░
🗓 0.00 km
👩🏻‍🔧 Kaylee: So, um, how come you
don’t care where you’re going?
👩🏾‍🌾 Book: ‘Cause how you get there
is the worthier part.
@ashtom
ashtom / download_crashes.rb
Created December 12, 2011 18:37
Download crashes of a crash group from HockeyApp
require "rubygems"
require "json"
require "open-uri"
puts "API Token:"
api_token = gets.strip
puts "App ID:"
app_id = gets.strip
@ashtom
ashtom / upload.rb
Created April 9, 2012 16:07
Bulk Upload Crashes to HockeyApp
require 'rubygems'
require 'rest_client'
# Replace with your values
APP_ID = "APP_ID"
APP_NAME = "EXECUTABLE_NAME"
BUNDLE_ID = "BUNDLE_IDENTIFIER"
BUNDLE_VERSION = "BUNDLE_VERSION"
files = Dir.glob("*.crash")
@ashtom
ashtom / export.json
Created March 1, 2011 08:35
Example JSON file exported by Pomodoro App
[
{
"pomodoros": [
],
"estimate": 4,
"list": 0,
"interruptions": [
],
"subposition": -1,
"position": 184,