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 | |
# Copyright (c) 2013 Quanlong He. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
""" | |
resign-ipa.py -- Resign the ipa with new certificate and mobileprovision. | |
""" | |
""" |
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 ruby | |
# Generate patch from gerrit | |
require 'optparse' | |
def generatePatch(base_branch, topic_pattern, output_dir) | |
`git review -l | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g"`.lines do |line| | |
_, patch, topic = line.match(/(\d+).*(#{topic_pattern}).*/).to_a | |
next if not patch or not topic |
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 shutil | |
import os | |
import glob | |
import json | |
import sys | |
def CreateXcassets(name): | |
# Cleanup siliently first. |
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 | |
# Copyright (c) 2014 Quanlong. All rights reserved. | |
# | |
# \author: Quanlong <[email protected]> | |
import subprocess | |
import re | |
import optparse | |
import sys | |
import os |
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 | |
# Copyright (c) 2014 Quanlong. All rights reserved. | |
# | |
# \author: Quanlong <[email protected]> | |
import logging | |
import subprocess | |
import re | |
import optparse | |
import sys |
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 | |
# | |
# A simple wrapper support select app by reading from environment vars and | |
# auto append the --app to origin heroku bin. | |
# | |
# Last-updated: Fri Dec 6 17:19:07 CST 2013 by quanlong. | |
import sys | |
import os | |
import subprocess |
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 | |
import optparse | |
import numpy as np | |
from progress.counter import Counter | |
def GenerateSamples(mu, sigma, size, delta): | |
bar = Counter('Calculating: ') |
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 sys | |
TEXT_ID = 'itunesartwork' | |
# Provided by sw-dev.herokuapp.com | |
os.environ.setdefault('CLOUDINARY_URL', | |
'cloudinary://api_key:secret') |
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 | |
from twilio.rest import TwilioRestClient | |
# Your Account Sid and Auth Token from twilio.com/user/account | |
account_sid = | |
auth_token = | |
client = TwilioRestClient(account_sid, auth_token) | |
message = client.sms.messages.create(body="Jenny please?! I love you <3", |
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/ruby | |
require 'optparse' | |
def RemoveHerokuAppsWithPattern(pattern, confirm) | |
apps = [] | |
# Find apps to remove | |
`heroku apps`.lines do |line| | |
_, app = line.match(/(#{pattern}.*)/).to_a |
OlderNewer