Skip to content

Instantly share code, notes, and snippets.

View EddM's full-sized avatar
🦆

Edd Morgan EddM

🦆
View GitHub Profile
@EddM
EddM / wanikani-ci.rb
Created August 19, 2016 22:13
quickly display your critical kanji/vocab from wanikani
#!/usr/bin/env ruby
require "httparty"
API_KEY = "abc123"
THRESHOLD = 80
response = HTTParty.get("https://www.wanikani.com/api/user/#{API_KEY}/critical-items/#{THRESHOLD}")
data = JSON.parse(response.body)
items = data["requested_information"]
module Delayable
def delay_instance_method(method_name, *args)
Sidekiq::Client.enqueue DelayedInstanceMethodWorker, class.to_s, id, method_name.to_s, args
end
end
syntax on
set number
set nocompatible
set ruler
set laststatus=2
set tabstop=2
set shiftwidth=2
set expandtab
" graphical vim
### Keybase proof
I hereby claim:
* I am eddm on github.
* I am edd (https://keybase.io/edd) on keybase.
* I have a public key whose fingerprint is 25EA 3533 D96F 1ECE 27A5 B870 7E32 EA53 431E 6886
To claim this, I am signing this object:
@EddM
EddM / gist:d2df805300a423c16205
Created September 25, 2014 10:48
keybase.md
### Keybase proof
I hereby claim:
* I am eddm on github.
* I am edd (https://keybase.io/edd) on keybase.
* I have a public key whose fingerprint is 25EA 3533 D96F 1ECE 27A5 B870 7E32 EA53 431E 6886
To claim this, I am signing this object:
# WPF Clock in IronRuby!
# <t-edmor@microsoft.com>
require 'WindowsBase'
require 'PresentationFramework'
require 'PresentationCore'
require 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
class Clock
// ==UserScript==
// @name Due Badge
// @namespace http://fluidapp.com
// @description Displays a dock badge for items in a certain Remember The Milk list.
// @include *
// @author Edd Morgan <trquadrant.com>
// ==/UserScript==
(function () {
if (window.fluid) {
class HTMLColor
attr_accessor :hex, :red, :green, :blue
Colors = %w(red green blue)
Spectrum = %w(white black grey) + Colors
def initialize(hex)
@hex = hex.gsub(/#|0x/, "")
@red = @hex[0..1].hex