I hereby claim:
- I am cyu on github.
- I am cyu (https://keybase.io/cyu) on keybase.
- I have a public key whose fingerprint is BC74 C49D 6E89 DCE5 B3F6 910F B10F FBC0 158A 7475
To claim this, I am signing this object:
begin | |
require 'rubygems' | |
require 'twitter' | |
rescue LoadError | |
%x{echo "repo:#{ARGV[0]} rev: #{ARGV[1]}" > /tmp/svn-hooks.log} | |
%x{echo "Error: #{$!} trace:#{caller}" >> /tmp/svn-hooks.log} | |
end | |
def gather_and_post(repo_path, revision) | |
svnlook = '/usr/bin/svnlook' |
<?php | |
# | |
# A modified version of Marc Nozell's yadd.php V1.0 by Calvin Yu. | |
# (http://blog.codeeg.com/) | |
# | |
# This is yadd.php V1.0 by Marc Nozell (marc@nozell.com) based on | |
# Stephen Eyre's dailydelicious | |
# (http://www.dot-totally.co.uk/dailydelicious.txt) | |
# | |
# See http://www.nozell.com/blog/ for the latest version of |
var FP_HOST = "http://codeeg.com/readerfp"; | |
var d = '<html>'; | |
d += '<head>'; | |
d += '<link href="' + FP_HOST + '/fp.css" type="text/css" rel="stylesheet"/>'; | |
d += '</head>'; | |
d += '<body>'; | |
d += '<a name="top"/>'; | |
d += '<div id="header"><h1>Google Reader FP</h1>'; | |
d += '<a href="javascript:FP.reload()">Refresh</a>'; | |
d += '</div>'; |
#!/usr/bin/env python | |
# | |
# This is a modified version of the Gmail Loader application which can be | |
# here: http://www.marklyon.org/gmail/download.htm | |
# | |
# CHANGES: | |
# * Changed the default SMTP server to smtp.gmail.com (the original one seems | |
# to be no longer active). | |
# * Added support for SMTP authentication. | |
# * Added port number argument for GMail SMTP server. |
emmaConfig = | |
namespaces: | |
deals: # deal pics optimized for mobile | |
urlTemplate: 'http://cloud.scoutmob.com/upload/images/deals/$1/original.$extension' | |
cacheExpiration: 14 * 24 * 60 * 60 # 14 days | |
processImage: (gm) -> gm.quality(60) |
var fs = require('fs'); | |
var http = require('http'); | |
var path = require('path'); | |
var console = require('sys'); | |
var url = require('url'); | |
var Script = process.binding('evals').Script; | |
var couchURL = url.parse(process.argv[2]); | |
var couch = http.createClient(couchURL.port, couchURL.hostname); |
# https://dev.twitter.com/docs/auth/application-only-auth | |
require 'open-uri' | |
require "base64" | |
require 'net/http' | |
require 'json' | |
CONSUMER_KEY = 'MY_CONSUMER_KEY' | |
CONSUMER_SECRET = 'MY_CONSUMER_SECRET' |
I hereby claim:
To claim this, I am signing this object:
$(document).ready(function () { | |
var formFields = $("[data-hook='admin_customer_return_form_fields'], [data-hook='admin_return_authorization_form_fields']") | |
function checkAddItemBox () { | |
$(this).closest('tr').find('input.add-item').attr('checked', 'checked') | |
updateSuggestedAmount() | |
} | |
function updateSuggestedAmount (resetRefundAmount) { | |
var totalPretaxRefund = 0 |
# this include won't work for some reason: | |
# include Capistrano::Git::DefaultStrategy | |
module SubmoduleStrategy | |
# check for a .git directory | |
def test | |
test! " [ -d #{repo_path}/.git ] " | |
end |