Skip to content

Instantly share code, notes, and snippets.

@kenyonj
kenyonj / intensify.sh
Created July 15, 2021 15:33
png intensifier
#!/bin/bash
# Generate a `:something-intensifies:` Slack emoji, given a reasonable image
# input. I recommend grabbing an emoji from https://emojipedia.org/
set -euo pipefail
# Number of frames of shaking
count=10
# Max pixels to move while shaking
@kenyonj
kenyonj / test.md
Created April 14, 2021 14:00
Test

Wow

yes
class EmailAddress
def initialize(user, disallowed_email_domains, paid_via_ach)
@user = user
@disallowed_email_domains = disallowed_email_domains
@paid_via_ach = paid_via_ach
end
def self.generate(user, disallowed_email_domains: [], paid_via_ach:)
new(user, disallowed_email_domains, paid_via_ach)
end
# What I want to do: (but it doesn't work)
def in_delivery_area_locations_scope
should_include_in_delivery_area_locations? &&
Location.where(location_order_providers: location_order_providers)
end
def location_order_providers
LocationOrderProvider.delivering_to(latitude: Float(params[:lat]),
longitude: Float(params[:lng]))
end
MYAPP_RELEASE_STORE_FILE=prod.keystore
MYAPP_RELEASE_KEY_ALIAS=prod
MYAPP_RELEASE_STORE_PASSWORD=****
MYAPP_RELEASE_KEY_PASSWORD=****
#!/bin/zsh
ITUNES_BASE_URL="https://itunes.apple.com/search?country=US&term="
SPOTIFY_BASE_URL="https://api.spotify.com/v1/tracks/"
NO_ALBUM_ART_FOUND_IMAGE="$HOME/.scripts/notfound.jpg"
api_url_for() {
if [[ "$1" == "spotify" ]]; then
echo "$SPOTIFY_BASE_URL`current_song_detail id`"
elif [[ "$1" == "itunes" ]]; then

Keybase proof

I hereby claim:

  • I am kenyonj on github.
  • I am kenyonj (https://keybase.io/kenyonj) on keybase.
  • I have a public key whose fingerprint is 7A8C D970 0E0C 3A01 D0FC 4CC1 4D7E 4DB2 2538 E93E

To claim this, I am signing this object:

#!/bin/zsh
i3_config_file="$HOME/.i3/config"
[[ -f $i3_config_file ]] && rm $i3_config_file
touch "$i3_config_file"
echo "#### DO NOT EDIT THIS FILE, IT IS GENERATED." >> $i3_config_file
echo "#### EDIT THE FILES HERE: ~/.i3/config.d/**/*" >> $i3_config_file
- cache "surveys_taken", expires_in: 1.hour do
div.row
div.col-md-10
div.panel-heading
h2= t(".surveys_taken.title")
small= t(".surveys_taken.updated", time_of_last_update: l(DateTime.now, format: :short))