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:
# 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 |
$(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 |
I hereby claim:
To claim this, I am signing this object:
# 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' |
# config/initializers/paperclip.rb | |
require 'paperclip/protocol_relative_url_support' | |
Paperclip::Attachment.send :include, Paperclip::ProtocolRelativeURLSupport |
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) |
#!/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. |
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 ruby | |
require 'rubygems' | |
require 'flickr' | |
require 'ftools' | |
require 'yaml' | |
API_KEY = "flickr_api_key" | |
SHARED_SECRET = "flickr_shared_secret" |