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
White-Rabbit:bananajour travis$ bananajour | |
* Started http://White-Rabbit.local:9331/ | |
* Started git://White-Rabbit.local/ | |
Registering http://White-Rabbit.local:9331/ | |
Registering git://White-Rabbit.local/PHP-Extension-API.git | |
Registering git://White-Rabbit.local/activitystream.git | |
Registering git://White-Rabbit.local/argil.git | |
Registering git://White-Rabbit.local/bananajour.git | |
Registering git://White-Rabbit.local/bobby-tables.git | |
Registering git://White-Rabbit.local/d51.django.apps.schedules.git |
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 python | |
import sys, os | |
def make_namespaced(path): | |
init_file = os.path.join(path, "__init__.py") | |
if os.path.exists(init_file): | |
return | |
open(init_file, "w").write("import pkg_resources\npkg_resources.declare_namespace(__name__)\n\n") | |
[make_namespaced(i[0]) for i in os.walk(sys.argv[1])] |
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 python | |
import os | |
import feedparser | |
import pprint | |
import subprocess | |
TED_FEED = "http://feeds.feedburner.com/tedtalks_video" | |
def need_to_download(entries): | |
for entry in entries: |
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
jetpack.future.import("pageMods"); | |
var twitter_jetpack_callback = function(doc) { | |
// var doc = document; // uncomment to run directly in Firebug | |
$('body', doc).append($('<h1>jetpack!</h1>', doc)); | |
var selector_text = 'a:contains("in reply to")'; | |
var selector_for_more = '#pagination a'; |
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
jetpack.future.import("pageMods"); | |
var fix_ljworld = function(doc) { | |
$('div[class$=ad]', doc).children().hide(); | |
$('.ad', doc).children().hide(); | |
$('.top-banner-ad', doc).css('height', '0'); | |
}; | |
var options = {}; | |
options.matches = ["http://www2.ljworld.com/*", |
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
/** | |
sleuth.js | |
@author Ross Bruniges | |
@version 0.9 | |
A light-weight JavaScript based HTML/CSS/JS confirmation tool (NOT a validator) | |
Write tests in JSON (example found at - ????) | |
Call in page via sleuth.test_page.init(json_objs) | |
*/ | |
var sleuth = window.sleuth || {}; |
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 'open-uri' | |
# url dsl -- the ultimate url dsl! | |
# | |
# You just can't beat this: | |
# | |
# $ irb -r url_dsl | |
# >> include URLDSL | |
# => Object | |
# >> http://github.com/defunkt.json |
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
jetpack.future.import("pageMods"); | |
var become_a_hater = function(doc) { | |
var fan_button = $('.fan_action_frame .UIButton_Text', doc); | |
fan_button.html(fan_button.html().replace('Fan', 'Hater')); | |
}; | |
var options = {}; | |
options.matches = ["http://www.facebook.com/*"]; | |
jetpack.pageMods.add(become_a_hater, options); |
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
from fabric.api import env | |
import fabric.api | |
import fabric.contrib.files | |
import os, random, re | |
__all__ = ['local', 'init', ] | |
###### | |
## | |
## Fabric callbacks | |
## |
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 python | |
import os | |
import feedparser | |
import pprint | |
import subprocess | |
TED_FEED = "http://feeds.feedburner.com/tedtalks_video" | |
def need_to_download(entries): | |
for entry in entries: |