Wow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MYAPP_RELEASE_STORE_FILE=prod.keystore | |
MYAPP_RELEASE_KEY_ALIAS=prod | |
MYAPP_RELEASE_STORE_PASSWORD=**** | |
MYAPP_RELEASE_KEY_PASSWORD=**** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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)) |
NewerOlder