Skip to content

Instantly share code, notes, and snippets.

@kenyonj
kenyonj / public_key
Last active April 5, 2016 20:06
PGP Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
mQINBFcEF7MBEADHMrqUdUh7ANHVH1UPgoxdkhgktsK+axwEUo9O+x21CMl0v1Dc
jE85rXJaIATmyl5MKDMVbTn1xNWLGQt0op/Yh+NB0ahxkLLZ4Qn7iktRoWxvcrJm
jLuw01k4eWAz/C3FxUx2xM4mvnw4uv71OP1z3KZK/1BETUsOKjf6auEkRFz0hVpX
ALqnVvo5MTsNmxCfXILVOtmkVAoyuoRt1gWB5SXWvMHg1fedqUZGrle1qtskukiD
iwDcXNI9lUOjoWoDuObjs97CYcLQLosQENtzg7qNqDaQdsjrK5zhx3wyR/H7E2E/
GP+kDjXeAverMdmBMMCRpsYNPXt4juUa0JnEbJ1ElJVMmxeBdvc0gUnW9TmCdeGk
SkLBWHCesECST4wER+H+EwVfjOCsjJClvi8As9VDzj4sy/wR2AOrdvHGwHqJCMLw
class BenchmarksChart {
constructor(type, data) {
this.type = type;
this.data = data;
this.chart = new Chartist.Bar(".ct-${this.type}-chart", this.data, this._options)
this.chart.on("draw", function(data) {
if(data.type === "bar") {
let barWidth = 40;
@kenyonj
kenyonj / bacpac
Created September 25, 2015 02:50
this
acpi
adobe-source-code-pro-fonts
alsa-firmware
alsa-plugins
alsa-utils
apvlv
arandr
autoconf
automake
banner
- 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))
#!/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

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
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
MYAPP_RELEASE_STORE_FILE=prod.keystore
MYAPP_RELEASE_KEY_ALIAS=prod
MYAPP_RELEASE_STORE_PASSWORD=****
MYAPP_RELEASE_KEY_PASSWORD=****
# 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