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
KEYWORDS="TODO:|FIXME:|\?\?\?:|\!\!\!:" | |
find "${SRCROOT}" -type f \ | |
\( \ | |
-name "*.h" \ | |
-or -name "*.m" \ | |
-or -name "*.swift" \ | |
\) \ | |
-print0 \ | |
| xargs -0 egrep --with-filename --line-number \ |
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
char *constellationByNSDate(NSDate *date) { | |
static char *constellations[13] = {"Capricorn","Aquarius","Pisces","Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn"}; | |
static unsigned short constellationSeperates[12] = {20,19,21,21,21,22,23,23,23,24,22,22}; | |
unsigned short dateStr[5]; | |
NSLocale *CNLocale = [[NSLocale alloc] initWithLocaleIdentifier:@"zh_Hans_CN"]; | |
[[date descriptionWithLocale:CNLocale] getCharacters:(unichar*)dateStr range:(NSRange){5, 5}]; | |
unsigned short month = (dateStr[0] - '0') * 10 + (dateStr[1] - '0') - 1; | |
unsigned short day = (dateStr[3] - '0') * 10 + (dateStr[4] - '0'); | |
return constellations[month + (day < constellationSeperates[month] ? 0 : 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
dhcp-option=252,http://10.0.0.100:7777/pac | |
address=/r/10.0.0.1 | |
address=/z/10.0.0.100 | |
expand-hosts | |
cache-size=10000 | |
server=/amazonaws.com/8.8.4.4 | |
server=/appspot.com/8.8.4.4 |
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="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.lextang.shadowsocks</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/bin/node</string> | |
<string>/Users/Lex/Dropbox/shadowsocks-nodejs/local.js</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
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 |
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://query@LexTang.com/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
<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
#!/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
#!/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
# Exclude the Podspecs | |
Pods/* | |
Podfile.lock | |
# Exclude any PSD/AI source | |
#*.psd | |
#*.ai | |
# Exclude generated files | |
VersionX-revision.h |