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
# Numerous always-ignore extensions | |
*.diff | |
*.err | |
*.orig | |
*.log | |
*.rej | |
*.swo | |
*.swp | |
*.zip | |
*.vi |
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
text = "World,Hello!" | |
//こんな風に値を変えようとすると怒られます。 |
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
//要素が三つのString型配列を作成 | |
val array = Array\[String](3) | |
//こんな風に代入して使えます。 | |
//配列はかならず、ミュータブルな構造で生成されます。 | |
array(0) = "1" | |
//配列要素のアクセスの添え字は()を使用します。 | |
array(1) = "2" | |
array(2) = "3" |
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
import scala.io.Source | |
if(args.length >0){ | |
for(line<- Source.fromFile(args(0)).getLine()) | |
println(line) | |
} | |
} | |
else | |
Console.err.println("please enter fileName") |
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 SampleClass{ | |
//何も書かないとpublic参照 | |
var num =0 | |
} |
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
CoffeeScript はプログラミング言語のひとつである。コードはJavaScript のコードに変換される。 | |
Ruby や Python、Haskell から影響を受けたシンタックスシュガーの導入により、JavaScript に比べ簡潔さと可読性を向上させたほか、配列内包 (Array comprehensions) やパターンマッチといった機能を追加している。 | |
CoffeeScript により、パフォーマンスを下げることなく、より短いコードでプログラムを記述することができる (JavaScript に比べ 1/3 程度の行数が削減できる)。 |
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
AQuery aq = new AQuery(this); | |
aq.id(R.id.some_button).text( "Button" ).clicked(this,"someFunction"); |
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"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.example.ClientApplication" | |
android:versionCode="1" | |
android:versionName="1.0"> | |
<uses-sdk android:minSdkVersion="14"/> | |
<application | |
android:label="@string/app_name" android:icon="@drawable/ic_launcher" | |
android:theme="@android:style/Theme.Holo.Light" |
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
#include <stdio.h> | |
int main(int argc, const char * argv[]) | |
{ | |
//forのカウンタ | |
int i = 0; | |
//buffer | |
int prev_num = 0; |
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
PImage b; | |
void setup(){ | |
b=loadImage("lena.jpg"); | |
size(b.width,b.height); | |
} | |
void draw(){ | |
background(255); | |
for(int i=0;i<b.height;i+=2){ | |
for(int j=0;j<b.width;j+=2){ |
OlderNewer