Skip to content

Instantly share code, notes, and snippets.

Trying to figure out how to look up comments I've left

Pat Maddox patmaddox

Trying to figure out how to look up comments I've left
Block or report user

Report or block patmaddox

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View spec.rb
# Collaboration test...
describe Client do
it 'calls a_method on a server' do
client =
server = double 'server'
expect(server).to receive(:a_method).with(1, 2).and_return 3
patmaddox / new_note.scpt
Last active May 27, 2018
applescript to make a new markdown note in DEVONthink and open it in an editor
View new_note.scpt
display dialog "Name your note..." default answer ""
set theName to text returned of result
tell application id "DNtp"
set theID to "F76B0AC1-6B7B-45A2-ADE6-8514F54671F4"
set theGroup to get record with uuid theID
set theRecord to create record with {name:theName, type:markdown, content:"# " & theName} in theGroup
set theFile to path of theRecord as POSIX file
tell application "Finder" to open theFile
end tell
patmaddox / protected.rb
Created Mar 28, 2017
label every protected method
View protected.rb
class FunkyTown
def time_to
def get_funky
def get_down
View hey.txt
Version: Keybase Go 1.0.18 (darwin)

Keybase proof

I hereby claim:

  • I am patmaddox on github.
  • I am patmaddox ( on keybase.
  • I have a public key ASCiUFAnZKZdY6C-lhts6ejpm_CAKfP-a1GBAKp2MzJ-Wwo

To claim this, I am signing this object:

patmaddox / Dockerfile
Created Jan 12, 2017
Using personal SSH keys on docker container (OS X)
View Dockerfile
RUN mkdir ~/.ssh
RUN echo 'IdentityFile ~/.ssh-local/id_rsa' > ~/.ssh/config
patmaddox /
Created Oct 4, 2016
salary questions

One of the reasons that i want to learn Ruby is because the salary seems to be higher than a php developer does get. Currently i'm developing php based open source ecommerce extensions, and it is far under a junior ruby developer get. Hopefully you are willing to point me the correct direction as my starting point. Thanks a lot.

patmaddox /
Last active Oct 3, 2016
Scripts to make Falcon wavetable audio files
#!/usr/bin/env bash
# This takes two input files and creates an
# interpolated wavetable between them
# No warranty on this – backup your files first!
# Make the shell file executable, and then run it
# to see usage
patmaddox /
Created Aug 19, 2016
my awesome chicken wings

Chicken wings

I made some chicken wings tonight. Usually for the sauce I start with Frank's hot sauce and doctor it up a bit, but today I made a more custom sauce... the first time I've really done that.


  • pre-heat oven to 400, place a cast iron skillet inside
  • pat wings dry with napkins
patmaddox / drip_exp_id.rb
Last active Jul 11, 2017
Ruby script to generate random experiment id for email list CSV files
View drip_exp_id.rb
# Generate a random experiment id for existing drip subscribers
# Import the generated output.csv file back into drip...
# Use at your own risk (but it worked for me :)
require 'csv'
input_file = ARGV[0]
column_name = ARGV[1]
max_value = ARGV[2].to_i
You can’t perform that action at this time.