I hereby claim:
- I am mikedamage on github.
- I am mikegreen (https://keybase.io/mikegreen) on keybase.
- I have a public key whose fingerprint is 9D26 EDB9 CD61 8734 7B20 8B7F 5369 495C F7A1 2392
To claim this, I am signing this object:
// ==UserScript== | |
// @name Harvest Timer Growl Reminder | |
// @namespace http://harvestapp.com | |
// @description Displays Growl notifications at a user defined interval, reminding you to track your time. | |
// @include * | |
// @author Mike Green | |
// @version 0.1.1 | |
// ==/UserScript== | |
(function () { |
#!/usr/bin/env ruby | |
# | |
# = Email Ping | |
# | |
# Check to see if an email address exists by looking up MX records and connecting | |
# to the address's home SMTP server. It then starts to send a message to the address | |
# but quits before the message is actually sent. | |
require 'resolv' | |
require 'net/smtp' |
morse_dict = { | |
"a" => ".-", | |
"b" => "-...", | |
"c" => "-.-.", | |
"d" => "-..", | |
"e" => ".", | |
"f" => "..-.", | |
"g" => "--.", | |
"h" => "....", | |
"i" => "..", |
# from http://rubyeventmachine.com/wiki/CodeSnippets | |
$eventmachine_library = :pure_ruby # need to force pure ruby | |
require 'eventmachine' | |
gem_original_require 'serialport' | |
require 'smsrelay/gsmpdu' | |
module EventMachine | |
class EvmaSerialPort < StreamObject | |
def self.open(dev, baud, databits, stopbits, parity) | |
io = SerialPort.new(dev, baud, databits, stopbits, parity) |
-- SPLIT_STR MySQL Function | |
-- from http://blog.fedecarg.com/2009/02/22/mysql-split-string-function/ | |
CREATE FUNCTION SPLIT_STR( | |
x VARCHAR(255), | |
delim VARCHAR(12), | |
pos INT | |
) | |
RETURNS VARCHAR(255) | |
RETURN REPLACE(SUBSTRING(SUBSTRING_INDEX(x, delim, pos), |
User-agent: * | |
Disallow: /cgi-bin | |
Disallow: /wp-admin | |
Disallow: /wp-includes | |
Disallow: /wp-content/plugins | |
Disallow: /wp-content/cache | |
Disallow: /wp-content/themes | |
Disallow: /trackback | |
Disallow: /feed | |
Disallow: /comments |
#!/usr/bin/env node | |
// Borrowed and simplified from pretty-bytes by Sindre Sorhus | |
// https://github.com/sindresorhus/pretty-bytes/blob/main/index.js | |
function prettyBytes(num) { | |
const UNITS = [ | |
'b', | |
'kb', | |
'mb', | |
'gb', |
/** | |
* | |
* Base64 encode / decode | |
* http://www.webtoolkit.info/ | |
* | |
**/ | |
var Base64 = { | |
// private property |
I hereby claim:
To claim this, I am signing this object:
// Get & copy a Gist by ID | |
CmdUtils.CreateCommand({ | |
name: "gist-copy", | |
icon: "http://gist.github.com/favicon.ico", | |
author: {name: "Mike Green", email: "mike.is.green@gmail.com"}, | |
takes: {"gist": noun_arb_text}, | |
preview: function(pblock, theGist) { | |
var urlTemplate = "http://gist.github.com/${gist}.txt"; | |
var gistURL = CmdUtils.renderTemplate(urlTemplate, {gist: theGist.text}); | |
CmdUtils.previewGet(pblock, gistURL, {}, function(data) { |