Skip to content

Instantly share code, notes, and snippets.

@ashigeru
ashigeru / Another Syntax
Created July 2, 2011 15:14
Limited DMTL
-- 実験
using a : tx
with x, y, z : constant
match
case a.x_id = x.id
&& a.y_id = y.id
&& a.z_id = z.id
=> a / {x_name = x.name, y_name = y.name, z_name = z.name} into out
case _
=> a into failed
@ashigeru
ashigeru / asakusa-scr_01.rst
Created May 24, 2011 14:31
Asakusa SCR #1 - draft
@ashigeru
ashigeru / create-project.md
Created May 23, 2011 09:37
JJUG CCC 2011 Spring Demo

プロジェクトの作成

mvn archetype:generate -DarchetypeCatalog=http://asakusafw.s3.amazonaws.com/maven/archetype-catalog.xml
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
@ashigeru
ashigeru / example.md
Created May 16, 2011 14:56
Markdown Sandbox

Section

aaa

Subsection

  • item1
  • item2
@ashigeru
ashigeru / gist:876124
Created March 18, 2011 14:08
modelgen2
# エンティティの定義
# これに対するクラスができる
Body = {
item_id : string;
price : decimal;
};
# 射影の定義
# これに対するインターフェースができる
@fragment Header = {
@ashigeru
ashigeru / plugin.xml
Created July 30, 2010 20:47
Eclipseのコンパイラに介入する手順
=== プロジェクト作成 ===
== プラグインプロジェクトの新規作成 ==
* Activator不要
* UI不要
* テンプレート不要
== ビルド設定 ==
MANIFEST.MF > build.propertiesタブ
* http://gist.github.com/501171
@ashigeru
ashigeru / MyCompilationParticipant.java
Created July 30, 2010 20:45
Eclipseのコンパイラに介入するプログラムスタブ
/*
* Copyright 2010 @ashigeru.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@ashigeru
ashigeru / build.properties
Created July 30, 2010 19:31
PDE build.propertiesのおまじない
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.
javacSource.. = 1.6
javacTarget.. = 1.6
javacDefaultEncoding.. = UTF-8
import static org.junit.Assert.*;
import org.junit.Test;
import org.slim3.tester.AppEngineTestCase;
import com.google.appengine.api.datastore.Entity;
public class HasParentButIsIncomplete extends AppEngineTestCase {
@Test
@ashigeru
ashigeru / DatastoreClassLoader.java
Created June 4, 2010 17:07
プロダクション環境でHot Reloadingしたい。
/*
* Copyright 2010 @ashigeru.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software