Skip to content

Instantly share code, notes, and snippets.

View hwrdprkns's full-sized avatar
💭
I may be slow to respond.

Taylor H. Perkins hwrdprkns

💭
I may be slow to respond.
View GitHub Profile
@hwrdprkns
hwrdprkns / skip_directive_test.rb
Last active May 18, 2024 19:34
GraphQL Nested Query Test
# frozen_string_literal: true
require "bundler/inline"
gemfile do
gem "graphql"
gem "byebug"
end

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

/*
* Copyright (C) 2015 Jake Wharton
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@hwrdprkns
hwrdprkns / Brewfile
Last active August 29, 2015 14:04
Python script to backup all your brew files and an example of the output.
cleanup
update
upgrade
# Install the normal packages
install a52dec
install ack
install aften
install android-ndk
@hwrdprkns
hwrdprkns / material_colors.xml
Created July 7, 2014 22:41
Material Colors from the Android Design guidelines.
<!-- RED -->
<color name="red_50">#fde0dc</color>
<color name="red_100">#f9bdbb</color>
<color name="red_200">#f69988</color>
<color name="red_300">#f36c60</color>
<color name="red_400">#e84e40</color>
<color name="red_500">#e51c23</color>
<color name="red_600">#dd191d</color>
<color name="red_700">#d01716</color>
<color name="red_800">#c41411</color>
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
switch (isoLanguageCode) {
case "ay": // Aymará
case "bo": // Tibetan
case "cgg": // Chiga
case "dz": // Dzongkha
case "fa": // Persian
case "id": // Indonesian
case "ja": // Japanese
case "jbo": // Lojban
case "ka": // Georgian
moved = {}
for file in args.files:
current_week_dict = csv.DictReader(file, dialect='excel')
for current_row in current_week_dict:
symbol = current_row['Symbol']
if moved.has_key(symbol):
#Do some logic stuff.
for symbol in current_symbol_rank:
if previous_symbol_rank.has_key(symbol):
previous_rank = previous_symbol_rank[symbol]
current_rank = current_symbol_rank[symbol]
try:
moved[symbol] = int(previous_rank) - int(current_rank)
except ValueError:
pass
@hwrdprkns
hwrdprkns / gist:4003965
Created November 2, 2012 19:57
Any ScrollView
for(int i=0; i < this.getChildCount(); i++){
if (this.getChildAt(i) instanceof HorizontalScrollView) {
Rect r = new Rect();
this.getChildAt(i).getHitRect(r);
if (r.contains((int)event.getX(), (int)event.getY())) return false;
}
}