I hereby claim:
- I am tammymakesthings on github.
- I am tammymakesthings (https://keybase.io/tammymakesthings) on keybase.
- I have a public key ASDbW4BUnAi5Ad9_1sxFgzhzhtAI41bXKxIlumCLtLK_lAo
To claim this, I am signing this object:
| #!/bin/env ruby | |
| ########################################################################### | |
| # mkdwc: Behaves like wc(1) but operates on the raw text of one or more | |
| # Markdown or Textile files. | |
| # Tammy Cravit, [email protected] | |
| ########################################################################### | |
| # This code can also be included into another script if you want to extend | |
| # the MarkdownWC class. | |
| ########################################################################### | |
| # This is the third take on this script, and abstracts out the markup- |
| #!/bin/env bash | |
| ############################################################################## | |
| # kcurl: Download one or more files and send them to the Kindle. | |
| # Version 1.1, Tammy Cravit, [email protected], 10/14/2010 | |
| # | |
| # Requires that cURL and mutt be installed. The "home Wi-Fi" detection code | |
| # only works on MacOS X 10.x (probably with x > 4), but I welcome patches. | |
| # | |
| # To use this script, you'll need to configure the Kindle e-mail name and | |
| # home Wi-Fi SSID below. |
| module Kernel | |
| def on_execute | |
| calling_file = caller.first.split(':').first | |
| if File.expand_path(calling_file) == File.expand_path($0) | |
| yield | |
| end | |
| end | |
| end |
| ######################################################################### | |
| # A simple Ruby implementation of the Look-and-Say sequence (also known | |
| # as the Conway sequence or the Morris puzzle). | |
| # | |
| # In the Look-and-say Sequence, each term describes the previous term. | |
| # So, the first term is "1". This term consists of 1 of the digit '1', | |
| # so the next term is "11". This term consists of 2 of the digit '1', | |
| # so the next term is "21". This term consists of a single 2, followed | |
| # by a single "1", and so the next term is "1211". The next term would | |
| # be "111221", and so forth. |
| ############################################ | |
| # In lib/do_evil_things_to_strings.rb | |
| ############################################ | |
| class String | |
| old_is_utf8 = instance_method(:is_utf8?) | |
| define_method(:is_utf8?) do | |
| return false if calling_method == 'quote' | |
| old_is_utf8.bind(self).() |
| class Property < ActiveRecord::Base | |
| has_many :exclusions | |
| def excluded_on?(a_date) | |
| self.exclusions.each do |offering| | |
| return false if offering.start_date >= a_date && offering.end_date <= a_date | |
| end | |
| true | |
| end | |
| end |
| # I'm looking for a tidy named scope or class method I can define for a User | |
| # that will give me all the Events for which the user hasn't yet registered. | |
| class Event < ActiveRecord::Base | |
| has_many :registrations | |
| has_many :users, through: :registrations, as: :registrants | |
| end | |
| class Registration < ActiveRecord::Base | |
| belongs_to :event |
I hereby claim:
To claim this, I am signing this object:
| proxy_type: auto | |
| sketchbook_path: C:\Users\tammy.cravit\Documents\Arduino | |
| arduino_data: C:\Users\tammy.cravit\AppData\Local\Arduino15 | |
| board_manager: | |
| additional_urls: | |
| - https://adafruit.github.io/arduino-board-index/package_adafruit_index.json | |
| - https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json | |
| - https://arduboy.github.io/board-support/package_arduboy_index.json | |
| - http://www.leonardomiliani.com/repository/package_leonardomiliani.com_index.json | |
| - https://arduino.esp8266.com/stable/package_esp8266com_index.json |
| arduino-cli config set sketchbook_path %HOME%\projects\arduino | |
| arduino-cli core update-index | |
| arduino-cli core install arduino:avr | |
| arduino-cli core install adafruit:avr | |
| arduino-cli core install arduino:samd | |
| arduino-cli core install adafruit:nrf52 | |
| arduino-cli core install adafruit:samd | |
| arduino-cli core install adafruit:wiced | |
| arduino-cli core install esp8266:esp8266 |