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
require 'rubygems' | |
require 'rss/1.0' | |
require 'rss/2.0' | |
require 'open-uri' | |
require 'appscript' | |
require 'syslog' | |
require 'csv' | |
require 'uri' | |
include Appscript | |
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
html { | |
zoom: 1.5; | |
} |
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
// | |
// NSObject+RFExtensions.h | |
// | |
// Created by brandon on 10/5/12. | |
// Copyright (c) 2012 redf.net. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
typedef void (^NSObjectPerformBlock)(id userObject); |
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
# Two of my favorite MailMate keybindings | |
# <http://manual.mailmate-app.com/custom_key_bindings> | |
# | |
# g,g jumps to first message in message list | |
# G jumps to last message in list | |
{ | |
"g" = { | |
"g" = ( "makeFirstResponder:", "mainOutline", "selectFirstMessageRow:"); | |
}; | |
"G" = ( "makeFirstResponder:", "mainOutline", "selectLastMessageRow:"); |
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
""" | |
Pythonist script to expand any URL surrounded by **'s | |
""" | |
import clipboard | |
import requests | |
import webbrowser | |
import urlparse | |
from urllib import quote, urlencode |
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
// References: | |
// http://manual.mailmate-app.com/custom_key_bindings | |
// http://manual.mailmate-app.com/key_binding_selectors | |
// Custom | |
"E" = "expandAll:"; // expands all threads in current view | |
"T" = "showThread:"; // lower-case t doesn't work because it's bound to tags (?) | |
"l" = "copyAsLink:"; // copies message:// link for selected message | |
"y" = ( "selectWithFilter:", "#thread-id = ${#thread-id}", "archive:"); // http://protips.maxmasnick.com/mailmate-keyboard-shortcut-to-archive-all-messages-in-a-thread | |
"@[" = "backInHistory:"; // moves back in history, e.g. back to mailbox after performing a search. ESC also works for this. |
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 'json' | |
require 'logger' | |
require 'net/http' | |
require 'addressable/template' | |
require 'mechanize' | |
require 'nokogiri' |
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
struct Semaphore { | |
let semaphore: dispatch_semaphore_t | |
init(value: Int = 0) { | |
semaphore = dispatch_semaphore_create(value) | |
} | |
// Blocks the thread until the semaphore is free and returns true | |
// or until the timeout passes and returns false |
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 osascript | |
-- usage: | |
-- add_to_reading_list "http://google.com" "http://yahoo.com" | |
on run argv | |
repeat with arg in argv | |
tell app "Safari" to add reading list item (arg as text) | |
end repeat | |
end run |
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
package com.studyblue.test.aws; | |
import com.amazonaws.AmazonClientException; | |
import com.amazonaws.AmazonServiceException; | |
import com.amazonaws.AmazonWebServiceRequest; | |
import com.amazonaws.ResponseMetadata; | |
import com.amazonaws.regions.Region; | |
import com.amazonaws.services.sqs.AmazonSQS; | |
import com.amazonaws.services.sqs.model.*; | |
import com.google.common.hash.Hashing; |
OlderNewer