Skip to content

Instantly share code, notes, and snippets.

module.exports = {
defaultBrowser: "Choosy",
handlers: [
{
match: /zoom.us\/j\//,
browser: "us.zoom.xos"
}
],
rewrite: [
{
@takeo
takeo / gist:14
Created July 17, 2008 20:27
the most beautiful code in the world
--- /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>
logWork: {
selector: '#issueContent',
finder: function(elements) {
return elements[0]
}
},
issueContent: {
selector: '#issueContent',
finder: function(elements){
return elements[0]

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 December 11, 2011 19:05
NewNewTwitter AdBlock settings
twitter.com##div.module.trends.component
twitter.com##div[data-component-term=user_recommendations]
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
@takeo
takeo / gist:385818
Created April 30, 2010 21:53 — forked from 3n/gist:385810
// 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]);
}
};
@takeo
takeo / campfire_emoji.js
Created January 26, 2011 21:19
all the keys for campfire emoji
Emoji: {
'sunny': '2600',
'zap': '26a1',
'leaves': '1f343',
'lipstick': '1f483',
'cop': '1f46c',
'wheelchair': '267f',
'fish': '1f413',
'hammer': '1f52c',
'moneybag': '1f4b0',
@takeo
takeo / mini.rb
Created February 24, 2010 08:32 — forked from defunkt/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)
@takeo
takeo / x
Created October 23, 2008 04:27
blah