This file contains hidden or 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
import csv | |
from random import randint | |
import sys | |
#determin whether args is legal or not | |
#抽奖文件名 | |
filename = sys.argv[1] | |
#中奖序列号起始值 | |
startNum = int(sys.argv[2]) | |
#中奖序列号结束值 |
This file contains hidden or 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
LOCAL_PATH := $(call my-dir) | |
include $(CLEAR_VARS) | |
LOCAL_MODULE := game_shared | |
LOCAL_MODULE_FILENAME := libgame | |
#traverse all the directory and subdirectory | |
define walk |
This file contains hidden or 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/sh | |
# PackTexture.sh | |
# | |
# Created by Guanghui Qu on 13-3-19. | |
TP="/usr/local/bin/TexturePacker" | |
# create spritesheet |
This file contains hidden or 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/sh | |
GD="/usr/local/bin/GDCL" | |
${GD} ../heightFont.GlyphProject Resources/HD/height | |
${GD} ../heightFont.GlyphProject Resources/SD/height -fs 16 | |
This file contains hidden or 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
教程:http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way/ | |
http://www.cnblogs.com/ahauzyy/archive/2013/04/08/3043384.html | |
http://blog.haohtml.com/archives/12658 | |
http://blog.csdn.net/sheismylife/article/details/7204345 | |
错误1 : | |
PTY allocation request failed on channel 0 | |
ERROR:gitosis.serve.main:Need SSH_ORIGINAL_COMMAND in environment. |
This file contains hidden or 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
sudo add-apt-repository ppa:fcwu-tw/ppa | |
sudo apt-get update | |
sudo apt-get install vim | |
Reference: | |
http://linuxg.net/how-to-install-vim-7-4-on-ubuntu-13-10-13-04-12-04-linux-mint-16-15-13-and-debian-sid/ |
This file contains hidden or 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
# This file is NOT licensed under the GPLv3, which is the license for the rest | |
# of YouCompleteMe. | |
# | |
# Here's the license text for this file: | |
# | |
# This is free and unencumbered software released into the public domain. | |
# | |
# Anyone is free to copy, modify, publish, use, compile, sell, or | |
# distribute this software, either in source code form or as a compiled | |
# binary, for any purpose, commercial or non-commercial, and by any |
This file contains hidden or 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
mogrify -resize 40% -path outputpath *.png |
This file contains hidden or 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
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c4 -s " " -t | sort -nr | nl | head -n10 | |
This file contains hidden or 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
1.使用Xvim插件,提供vim体验 | |
2.使用svn的时候会莫名其妙地退出。 | |
http://stackoverflow.com/questions/12583725/xcode-4-5-quit-unexpectedly | |
3. |
OlderNewer