Skip to content

Instantly share code, notes, and snippets.

Kate Donaldson katelovescode

Block or report user

Report or block katelovescode

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
katelovescode / ice_parsing.txt
Created Sep 21, 2019
Parsing Results from FY 2019 Search of ICE Contract Awards
View ice_parsing.txt
> table = CSV.parse("all_contracts_prime_awards_1.csv"), headers: true)
=> #<CSV::Table mode:col_or_row row_count:2567>
> obligated_amount = table['obligated_amount'].map(&:to_i).sum
=> 5118737376
> obligated_amount = table['current_total_value_of_award'].map(&:to_i).sum
=> 5438641566
> obligated_amount = table['potential_total_value_of_award'].map(&:to_i).sum
=> 14747351010
katelovescode / .gitconfig
Created Jan 20, 2019
Git cleanup alias
View .gitconfig
cleanup = "!f() { git remote prune origin && git checkout develop && git fetch --all && git pull && git branch --merged develop | grep -vE ' develop$| master$| staging$| testing$' | xargs -n 1 git branch -d; }; f"
katelovescode /
Last active Sep 20, 2018
Questions I'm asking on the job hunt

Round 1

  • Tell me about the state of your current product and where you'd like to see it go in the next two years. What are your engineering goals?
  • What responsibilities would I have in the role I'm being considered for?
  • What would you say are the top two personality traits someone needs to do this job well?
  • Why are you hiring for this position?
  • How are you currently making product decisions? What are you hoping to change about that process, if anything?

Round 2

katelovescode / roman_numeral_converter.rb
Created Sep 7, 2018
Convert from Roman Numerals to Arabic
View roman_numeral_converter.rb
require "pry"
"m": 1000,
"d": 500,
"c": 100,
"l": 50,
"x": 10,
"v": 5,
"i": 1
katelovescode / facebook.css
Last active Sep 16, 2018
User Stylesheet to stop Facebook from displaying chat windows
View facebook.css
# Use the User CSS Chrome extension, navigate to facebook, double click the User CSS icon to
# display the slide-out CSS window, and add the following code to the page so your Facebook
# messenger chat windows don't display
#pagelet_dock, #pagelet_sidebar {
display: none;
katelovescode /
Last active Sep 19, 2019
Get Marginalized Folks in Tech and Keep Them There
katelovescode / .rubocop.yml
Created Jun 22, 2018
Rubocop configuration when using rubocop-rails gem
View .rubocop.yml
- config/rails.yml
TargetRubyVersion: 2.5.1
DisabledByDefault: false
- "bin/**"
katelovescode / limited_api.rb
Created May 24, 2018
CSV output from a JSON API with a call limit
View limited_api.rb
require 'httparty'
require 'csv'
require 'json'
x = 0
while x < 46296 # this is the last record in my particular API
puts "on offset #{x}"
url = "{x}&limit=500"
response = HTTParty.get(url)
jobs_only = { |job| job["uuid"] != nil }
katelovescode / select_appointment_dates
Last active May 22, 2018
Select appointment_dates where all dates are unconfirmed for a specific appointment
View select_appointment_dates
DROP TABLE IF EXISTS appointments;
CREATE TABLE appointments (
id integer,
title varchar(255),
created_at date
DROP TABLE IF EXISTS appointment_dates;
CREATE TABLE appointment_dates (
id integer,
View gist:f1b701746a6a7e86d9e7dcfbefc7a511
"test": "nyc mocha --recursive --require test/setup.test.js --recursive --timeout 15000",
import 'jsdom-global/register';
const enzyme = require('enzyme');
const Adapter = require('enzyme-adapter-react-15.4');
const chai = require('chai');
const sinon = require('sinon');
You can’t perform that action at this time.