I hereby claim:
- I am JesseHerrick on github.
- I am jesseg17 (https://keybase.io/jesseg17) on keybase.
- I have a public key whose fingerprint is 4C6A B069 91E2 1130 40F9 E813 CE5E BC41 A8B6 2FDE
To claim this, I am signing this object:
require 'faraday' | |
require 'json' | |
class BestBuy | |
API_KEY = 'APIKEYHERE' # get one at developer.bestbuy.com | |
# initializes faraday and adds API key to options hash | |
def initialize | |
@options = { apiKey: API_KEY } | |
mkdir passwds | |
cd passwds | |
netsh wlan export profile key=clear | |
ren *.xml *.txt |
[ | |
// fusion | |
"Ashlynn Broedling", | |
"Ben Phipps", | |
"Ben Reineke", | |
"Danni McClendon", | |
"Eric Turner", | |
"Imani Terrell", | |
"Jean Joo", | |
"Jesse Herrick", |
I hereby claim:
To claim this, I am signing this object:
# Kettering Staff "API" | |
# | |
# kettering-staff.rb <LAST NAME> | |
# | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2015 Jesse Herrick | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal |
#!/usr/bin/env bash | |
write() { | |
command="$@" | |
# run the command | |
$@ | |
# special command exec stuff | |
case $command in |
#!/usr/bin/env ruby | |
require 'optparse' | |
require 'fileutils' | |
DB_CONFIG=<<EOF | |
default: &default | |
hostname: localhost | |
adapter: postgresql |
# this method is used to create a full XML structure for the Freshbooks API | |
# don't expect it to work for anything else | |
def to_xml(data_hash) | |
req_method = data_hash.delete(:method) | |
'<?xml version="1.0" encoding="utf-8"?>' + | |
"<request method=\"#{req_method}\">" + | |
hash_to_raw_xml(data_hash) + | |
'</request>' | |
end |
# list of people to secret santa | |
names = ['Foo', 'Bar', 'John', 'Jim'] | |
raise 'not even!' if names.count % 2 != 0 | |
def assigned?(matches, person) | |
matched_people = matches.values | |
matched_people.include? person | |
end |