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
#!/bin/bash | |
# According to https://developer.apple.com/library/ios/#qa/qa1686/_index.html | |
# Install ImageMagick with MacPort: sudo port install ImageMagick | |
convert $1 -resize 512x512 iTunesArtwork.png # Ad Hoc iTunes | |
convert $1 -resize 144x144 [email protected] # Home screen for "The New iPad" | |
convert $1 -resize 114x114 [email protected] # Home screen for Retina display iPhone/iPod | |
convert $1 -resize 72x72 Icon-72.png # App Store and Home screen on iPad | |
convert $1 -resize 58x58 [email protected] # Spotlight and Settings for Retina display | |
convert $1 -resize 57x57 Icon.png # Home screen on non-Retina iPhone/iPod | |
convert $1 -resize 50x50 Icon-Small-50.png # Spotlight on iPad 1/2 |
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
#!/bin/bash | |
# sudo chmod +x tc;sudo mv tc /usr/bin | |
if [[ -z "$1" ]] | |
then | |
printf %s "\ | |
Nifty Timestamp Convertor by Lex Tang | |
tc 2012/12/12 | |
tc 1355283413 | |
" | |
exit |
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
#pragma mark - NSLogger+TestFlight | |
#ifdef ADHOC | |
#import "TestFlight.h" | |
#define LOG_NETWORK(level, format, ...) TFLog((@"%s [Line %d] " format), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) | |
#define LOG_GENERAL(level, format, ...) TFLog((@"%s [Line %d] " format), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) | |
#define LOG_GRAPHICS(level, format, ...) TFLog((@"%s [Line %d] " format), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) | |
#define LOG_MEMORY(level, format, ...) TFLog((@"%s [Line %d] " format), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) | |
#define LOG_IMAGE(level, format, ...) do{}while(0) | |
#else | |
#if 0 // REMOTE LOG |
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
# Testflight web interface doesn't allow input non-ASCII characters (e.g. Japanese) with Safari! | |
BROWSER = Safari | |
TESTFLIGHT_TEAM_TOKEN_FILE = ./.testflight_team_token | |
TESTFLIGHT_TEAM_TOKEN_URL = https://testflightapp.com/dashboard/team/edit/?next=/api/doc/ | |
TESTFLIGHT_TEAM_TOKEN = $(shell cat $(TESTFLIGHT_TEAM_TOKEN_FILE)) | |
TESTFLIGHT_API_TOKEN_FILE = ~/.testflight_api_token | |
TESTFLIGHT_API_TOKEN_URL = https://testflightapp.com/account/\#api-token | |
TESTFLIGHT_API_TOKEN = $(shell cat $(TESTFLIGHT_API_TOKEN_FILE)) | |
TESTFLIGHT_NOTES = 'This build was uploaded via the upload API' | |
#TESTFLIGHT_OTHER_OPTIONS = -F replace=True |
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
# Exclude the Podspecs | |
Pods/* | |
Podfile.lock | |
# Exclude any PSD/AI source | |
#*.psd | |
#*.ai | |
# Exclude generated files | |
VersionX-revision.h |
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
#!/bin/bash | |
export MM_KEYCHAIN=(~/Dropbox/mm.keychain) | |
export MM_INHOUSE_KEYCHAIN=(~/Dropbox/mm_inhouse.keychain) | |
cp "$MM_INHOUSE_KEYCHAIN" "$MM_INHOUSE_KEYCHAIN.ori" | |
security delete-keychain "$MM_INHOUSE_KEYCHAIN" | |
if [[ -f "$MM_KEYCHAIN.ori" ]]; then |
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 | |
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
import json | |
import getopt | |
import urllib2 | |
import commands | |
import string |
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
<job id="TheShawshankHammer"> | |
<script language="JScript" id="env"> | |
var fso = new ActiveXObject("Scripting.FileSystemObject"); | |
var WshShell = WScript.CreateObject("WScript.Shell"); | |
var deskPath = WshShell.SpecialFolders("Desktop"); | |
var arg = WScript.Arguments; | |
var scriptPath = WScript.ScriptFullName.split('\\').slice(0, -1).join('\\') + '\\'; | |
</script> | |
<script language="JScript" id="scan"> |
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
<?xml version="1.0" encoding="iso-8859-1"?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head><title>LeXRus' CodeX | XMLDOM | Transform a XML file with XSLT & XMLDOM</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | |
<script xmlns:query="http://[email protected]/namespace/"><!--//XR.Web.Request.Query["expr.(string)"] | |
var from,num,select,order,sort; | |
from=parseInt(window.location.href.replace(/.*\?.*from=(\d+)\&?.*/i,"$1")).toString(); | |
num=parseInt(window.location.href.replace(/.*\?.*num=(\d+)\&?.*/i,"$1")).toString(); | |
select=window.location.href.replace(/.*\?.*select=([ \w@=\(\)\[\]\.\*\\\/]+).*/i,"$1").toString();//the Filter of strXPath |
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 'formula' | |
class Vim < Formula | |
homepage 'http://www.vim.org/' | |
url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2' | |
head 'https://vim.googlecode.com/hg/' | |
sha256 '5c5d5d6e07f1bbc49b6fe3906ff8a7e39b049928b68195b38e3e3d347100221d' | |
version '7.3.682' | |
def features; %w(tiny small normal big huge) end |
OlderNewer