This file contains 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
#!/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"] |
This file contains 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
module Delayable | |
def delay_instance_method(method_name, *args) | |
Sidekiq::Client.enqueue DelayedInstanceMethodWorker, class.to_s, id, method_name.to_s, args | |
end | |
end |
This file contains 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
syntax on | |
set number | |
set nocompatible | |
set ruler | |
set laststatus=2 | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
" graphical vim |
This file contains 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
### 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: |
This file contains 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
### 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: |
This file contains 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
# 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 |
This file contains 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
// ==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) { |
This file contains 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 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 |