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
mkdir gdp | |
cd gdp | |
git init | |
touch README | |
git add README | |
git commit -m 'first commit' | |
git remote add origin [email protected]:XingCloud/gdp.git | |
git push -u origin master |
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
// from http://www.cnblogs.com/GameDeveloper/articles/2827583.html | |
// Flash 扩展开发 | |
//var dom = fl.getDocumentDOM(); | |
//var fileName = dom.name.split(".fla").join(".swf"); | |
//var swfFile = fl.configURI + "WindowSWF/" + fileName; | |
//dom.exportSWF(swfFile, 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
void CommUtil::enableSprite(CCSprite* sp) | |
{ | |
const GLchar* pszFragSource = | |
"#ifdef GL_ES \n \ | |
precision mediump float; \n \ | |
#endif \n \ | |
uniform sampler2D u_texture; \n \ | |
varying vec2 v_texCoord; \n \ | |
varying vec4 v_fragmentColor; \n \ | |
void main(void) \n \ |
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
void CommUtil::disableSprite(CCSprite* sp) | |
{ | |
const GLchar* pszFragSource = | |
"#ifdef GL_ES \n \ | |
precision mediump float; \n \ | |
#endif \n \ | |
uniform sampler2D u_texture; \n \ | |
varying vec2 v_texCoord; \n \ | |
varying vec4 v_fragmentColor; \n \ | |
void main(void) \n \ |
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
package { | |
public class Json { | |
private static var decoder:JsonDecoder=null; | |
private static var encoder:JsonEncoder=null; | |
public static function decode(str:String):* { | |
if (decoder==null)decoder=new JsonDecoder(); | |
return decoder.decode(str); |
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/php -q | |
<?php | |
$base_dir = dirname(__FILE__); | |
$file = $base_dir . '/config/database.local.xml'; | |
$output_file = $base_dir . '/../Resources/conf/database.local.xml'; | |
if (file_exists($output_file) && filemtime($file) <= filemtime($output_file)) { | |
echo "no update for config file\n"; | |
exit(); | |
} | |
$xml = file_get_contents($file) or exit(1); |