Skip to content

Instantly share code, notes, and snippets.

Toby Sterrett takeo

Block or report user

Report or block takeo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am takeo on github.
  • I am takeo (https://keybase.io/takeo) on keybase.
  • I have a public key ASAKmfF7bPjKrkJfqFyZe1fsSuVWDGm6B7Zv0YIf8Acg0go

To claim this, I am signing this object:

@takeo
takeo / gist:1462151
Created Dec 11, 2011
NewNewTwitter AdBlock settings
View gist:1462151
twitter.com##div.module.trends.component
twitter.com##div[data-component-term=user_recommendations]
@takeo
takeo / campfire_emoji.js
Created Jan 26, 2011
all the keys for campfire emoji
View campfire_emoji.js
Emoji: {
'sunny': '2600',
'zap': '26a1',
'leaves': '1f343',
'lipstick': '1f483',
'cop': '1f46c',
'wheelchair': '267f',
'fish': '1f413',
'hammer': '1f52c',
'moneybag': '1f4b0',
View gist:385818
// definition of trackEvent method on a global object
$3N = {
trackEvent : function(category, action, label, value){
if (typeof(pageTracker) == "object") pageTracker._trackEvent(category, action, label, value);
else if(typeof(_gaq) == "object") _gaq.push(['_trackEvent', category, action, label, value]);
}
};
View mini.rb
##
# test/spec/mini 5
# http://gist.github.com/307649
# chris@ozmm.org
#
def context(*args, &block)
return super unless (name = args.first) && block
require 'test/unit'
klass = Class.new(defined?(ActiveSupport::TestCase) ? ActiveSupport::TestCase : Test::Unit::TestCase) do
def self.test(name, &block)
View Move To Archive.applescript
tell application "Mail"
set selectedMessages to the selection
set mailboxMap to {{accountName:"Work", archive:"All Mail"}, {accountName:"Gmail", archive:"All Mail"}}
repeat with mapItem in mailboxMap
set archiveMailbox to the mailbox (archive of mapItem) of account (accountName of mapItem)
set messagesToMove to {}
repeat with msg in selectedMessages
if name of the mailbox of msg is "INBOX" then
if name of the account of the mailbox of msg is (accountName of mapItem) then
View gist:90033
logWork: {
selector: '#issueContent',
finder: function(elements) {
return elements[0]
}
},
issueContent: {
selector: '#issueContent',
finder: function(elements){
return elements[0]
View gist:4809
= Gistr
A simple tool to post gists to tumblr.
== The Problem
Tumblr does not have a way to post code snippets simply and the current solutions are lacking.
@takeo
takeo / gist:14
Created Jul 17, 2008
the most beautiful code in the world
View gist:14
--- /Users/ioio/Downloads/KeyRemap4MacBook-6.99.0/files/prefpane/include/simultaneouskeypresses_vimode.xml 2010-11-12 18:21:47.000000000 +0100
+++ /Users/ioio/Downloads/KeyRemap4MacBook-6.9.69/files/prefpane/include/simultaneouskeypresses_vimode.xml 2010-11-14 20:43:08.000000000 +0100
@@ -8,7 +8,8 @@
<appendix>Push S and D keys simultaneously and keep them pressing.</appendix>
<appendix>Then you can use Vi style navigation by HJKL.</appendix>
<appendix>- HJKL to Left/Down/Up/Right</appendix>
- <sysctl vk_config="true">notsave.simultaneouskeypresses_vimode</sysctl>
+ <sysctl>notsave.simultaneouskeypresses_vimode</sysctl>
+ <vk_config>true</vk_config>
<autogen>--ShowStatusMessage-- Vi Mode</autogen>
You can’t perform that action at this time.