I hereby claim:
- I am graysonwright on github.
- I am graysonwright (https://keybase.io/graysonwright) on keybase.
- I have a public key ASBudAIYSTApmR3OrJC2d6xQWtHYLEoXl94YY9lBgYL18Ao
To claim this, I am signing this object:
| require 'dnsimple' | |
| def update_dns | |
| # TODO: Put DNSimple username and API Key or password in ~/.dnsimple | |
| # See https://github.com/aetrion/dnsimple-ruby/blob/master/README.md#credentials | |
| DNSimple::Client.load_credentials_if_necessary | |
| # TODO replace with domain and record name | |
| record = find_record 'example.com', 'www' |
| Administrate.actions(:rake_tasks) do |page| | |
| page.rake :clear_cache | |
| end |
| class PlantBucketAssignment | |
| belongs_to :plant | |
| belongs_to :bucket | |
| end | |
| class Bucket | |
| has_many :plant_bucket_assignments | |
| has_many :plants, through: :plant_bucket_assignments | |
| def current_plant |
| require 'capybara/poltergeist' | |
| require 'ruby-progressbar' | |
| session = Capybara::Session.new(:poltergeist) | |
| session.visit("https://bank.simple.com/signin") | |
| session.fill_in("username", with: "USERNAME") | |
| session.fill_in("password", with: "PASSWORD") | |
| session.click_on("Sign in") |
| "Emergency": | |
| "Disaster Response": | |
| "Emergency Cash": | |
| "Help Pay for Food": | |
| "Help Pay for Healthcare": | |
| "Help Pay for Housing": | |
| "Help Pay for Gas": | |
| "Help Pay for School": | |
| "Help Pay for Utilities": | |
| "Emergency Food": |
| single_quote = "'" | |
| script = ' | |
| first = "single_quote = \"#{single_quote}\"" | |
| assignment = "script = " + single_quote | |
| lines = [ | |
| first, | |
| assignment, | |
| script.strip, |
| require 'benchmark' | |
| ATTRIBUTE_TYPES = {}.tap do |hash| | |
| struct = Struct.new(:searchable?) | |
| 50.times do |i| | |
| searchable_val = [true, false].sample | |
| hash[i] = struct.new(searchable_val) | |
| end | |
| end |
I hereby claim:
To claim this, I am signing this object:
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "os" | |
| ) | |
| type Person struct { | |
| Name string |
| Usage: | |
| spotify <command> | |
| Commands: | |
| play # Resumes playback where Spotify last left off. | |
| play <song name> # Finds a song by name and plays it. | |
| play album <album name> # Finds an album by name and plays it. | |
| play artist <artist name> # Finds an artist by name and plays it. |