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
syntax on " 自动语法高亮 | |
"set transparency=20 " 设置背景透明度 | |
set nocompatible " 关闭vi兼容模式 | |
set confirm " 处理未保存或只读文件弹出确认 | |
set number " 显示行号 | |
set nobackup " 不生成临时文件 | |
set noswapfile | |
set ignorecase " 搜索不区分大小写 | |
set smartcase " 搜索时当关键词有大写时保持大小写敏感 |
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/python | |
Content = open("ui.ccs").read() | |
ContentArray = Content.split("\n") | |
newContent = "" | |
Skip = False |
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
local audioEngine = cc.SimpleAudioEngine:getInstance( ) | |
BattleEffect = BattleEffect or { } | |
--[[ 士气 ]] | |
function BattleEffect:playMorale( ) | |
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
local function tab2space(filename) | |
local lines = {} | |
io.input(filename) | |
for line in io.lines() do | |
table.insert(lines, line) | |
end | |
local newLine = {} | |
for _, line in ipairs(lines) do |
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
echo "Build start" | |
mkdir -p frameworks/cocos2d-x-prebuild | |
cd frameworks/cocos2d-x/build/ | |
rm -rf build | |
xcodebuild -project cocos2d_libs.xcodeproj -target "libcocos2d iOS" | |
cd - | |
cp "frameworks/cocos2d-x/build/build/Release-iphoneos/libcocos2d iOS.a" frameworks/cocos2d-x-prebuild/ | |
cd frameworks/cocos2d-x/cocos/scripting/lua-bindings/proj.ios_mac/ |
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 | |
# exec &> ~/logfile.txt | |
# In iTerm2 Session preferences <Advanced> pane setup Semantic History to: | |
# | |
# [Run coprocess...] | |
# ~/dot/item2_open_file_in_emacs.sh +\2 \1 | |
if [[ $1 == "+" ]]; 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 re | |
import sys | |
import subprocess | |
def cmdGitDiffFiles(): | |
fileList = [] |
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
-- -*- lua -*- | |
exclude_files = { | |
"src/cocos/*", | |
} | |
globals = { | |
-- for cocos | |
"cc", | |
"ccui", |
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
/** | |
* ============================================================================ | |
* MIT License | |
* | |
* Copyright (c) 2017 Eric Phillips | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a | |
* copy of this software and associated documentation files (the "Software"), | |
* to deal in the Software without restriction, including without limitation | |
* the rights to use, copy, modify, merge, publish, distribute, sublicense, |