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
$ cocos new -l cpp -d ./ Jet | |
Running command: new | |
> Copy template into ~/Documents/repo/cocos2dx/Jet | |
> Copying cocos2d-x files... | |
> Rename project name from 'HelloCpp' to 'Jet' | |
> Replace the project name from 'HelloCpp' to 'Jet' | |
> Replace the project package name from 'org.cocos2dx.hellocpp' to 'org.cocos2dx.Jet' | |
> Replace the mac bundle id from 'org.cocos2dx.hellocpp' to 'org.cocos2dx.Jet' | |
> Replace the ios bundle id from 'org.cocos2dx.hellocpp' to 'org.cocos2dx.Jet' |
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
71 var HelloWorldScene = cc.Scene.extend({ | |
72 onEnter:function () { | |
73 this._super(); | |
74 var layer = new HelloWorldLayer(); | |
75 this.addChild(layer); | |
76 } |
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
[masato@mba] $ git clone git://github.com/creationix/nvm.git ~/.nvm | |
Cloning into '~/.nvm'... | |
remote: Counting objects: 2707, done. | |
remote: Total 2707 (delta 0), reused 0 (delta 0) | |
Receiving objects: 100% (2707/2707), 514.38 KiB | 232.00 KiB/s, done. | |
Resolving deltas: 100% (1476/1476), done. | |
Checking connectivity... done. |
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
[masato@mba] $ sudo cpanm Net::Twitter | |
--> Working on Net::Twitter | |
Fetching http://www.cpan.org/authors/id/M/MM/MMIMS/Net-Twitter-4.01004.tar.gz ... OK | |
Configuring Net-Twitter-4.01004 ... OK | |
... | |
Successfully installed Net-Twitter-4.01004 | |
9 distributions installed | |
[masato@mba] $ |
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
[masato@mba] $ sudo cpanm YAML | |
--> Working on YAML | |
Fetching http://www.cpan.org/authors/id/I/IN/INGY/YAML-0.98.tar.gz ... OK | |
Configuring YAML-0.98 ... OK | |
Building and testing YAML-0.98 ... OK | |
Successfully installed YAML-0.98 | |
1 distribution installed |
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
object HelloWorldApp extends App { | |
val name:String = if (args.length > 0) args(0) else "World"; | |
println ("Hello %s".format(name)) | |
} | |
HelloWorldApp.main(args) |
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
/** class and instance sample */ | |
class SimpleClass(id:String) { | |
// インスタンス化のタイミングで実行される。 | |
println("create SimpleClass id:" + id) | |
// 補助コンストラクタ | |
def this() { | |
// 先頭で基本コンストラクタを呼び出す必要がある。 | |
this("dummy"); | |
println("create by sub contracter") |
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 test; | |
public class FizzBuzz { | |
public static void main(String[] args) { | |
String val = null; | |
for(int i=1; i<100; i++) { | |
if (i%15 == 0) { | |
val = "FizzBuzz"; | |
} else if (i%3 == 0) { | |
val = "Fizz"; |
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 test; | |
public Class Hoge { | |
// test... | |
private String data; | |
public static void main(String[] args) { | |
System.out.println("hello world"); | |
} |
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
SET ECHO ON | |
SET TIMING ON | |
SET PAGESIZE 2000 | |
SET LINE 9999 | |
SPOOL PATCHNAME_01_YYYYMMDD.LOG | |
/*--------------------------------------------------- | |
|| 処理開始時刻 | |
---------------------------------------------------*/ | |
SELECT TO_CHAR (SYSDATE,'YYYY/MM/DD HH24:MI:SS') AS 開始時刻 FROM DUAL; |
NewerOlder