This file contains hidden or 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
| <project name="sample_project" default="help"> | |
| <property file="${basedir}/ant.properties" /> | |
| <loadproperties srcFile="${basedir}/project.properties" /> | |
| <!-- quick check on sdk.dir --> | |
| <fail | |
| message="sdk.dir is missing. Make sure to generate local.properties using 'android update project'" | |
| unless="sdk.dir" | |
| /> |
This file contains hidden or 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
| /** | |
| * Copyright (C) 2011 Yusuke Yamamoto | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * | |
| **/ | |
| @Grab(group='quartz', module='quartz', version='1.5.2') | |
| @Grab(group='org.twitter4j', module='twitter4j-core', version='2.2.5') |
This file contains hidden or 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 SimpleOpenNI.*; | |
| SimpleOpenNI kinect; | |
| ArrayList<PVector> handPositions; | |
| PVector currentHand; | |
| PVector previousHand; | |
| void setup() { | |
| size(640, 480); |
This file contains hidden or 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
| apply plugin:'groovy' | |
| apply plugin:'idea' | |
| repositories { mavenCentral() } | |
| dependencies { | |
| groovy 'org.codehaus.groovy:groovy-all:1.8.4' | |
| } | |
| task makeDirs(description:'make all dirs for project setup') << { |
This file contains hidden or 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
| System.setOut(new PrintStream(new OutputStream() { | |
| @Override | |
| public void write(int b) throws IOException { | |
| throw new RuntimeException("Assert使え(#゚Д゚)ゴルァ!!"); | |
| } | |
| })); |
This file contains hidden or 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 com.change_vision.jude.api.inf.project.* | |
| import com.change_vision.jude.api.inf.model.* | |
| import com.change_vision.jude.api.inf.editor.* | |
| import org.jggug.kobo.gexcelapi.GExcel | |
| class AstahGenerator { | |
| static generate(data) { | |
| def pa = ProjectAccessorFactory.getProjectAccessor() | |
| def editor = ModelEditorFactory.getERModelEditor() |
This file contains hidden or 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
| // GroovyRun:Groovy実行マクロ | |
| // GroovyとGroovyServが必要です。 | |
| // | |
| // 設定 | |
| // | |
| // 環境変数PATHを設定してなければ、groovyclientを絶対パスの設定 | |
| // 環境変数PATHを設定してあれば、変更不要 | |
| // 例 |
This file contains hidden or 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
| public class BeansValidator { | |
| private ClassValidator classValidator; | |
| private List<String> validMessages = new ArrayList<String>(); | |
| private BeansValidator() {} | |
| public BeansValidator(Class clazz) throws Exception{ | |
| classValidator = new ClassValidator(clazz); | |
This file contains hidden or 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 | |
| pkg=$1 | |
| intr() { | |
| adb shell am start -a android.intent.action.MAIN -c android.intent.category.HOME | |
| exit 0 | |
| } | |
| trap intr INT | |
| adb shell am instrument -w ${pkg}/android.test.InstrumentationTestRunner & |
This file contains hidden or 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 product.miyabi.android.broadcasttest; | |
| import java.util.List; | |
| import android.app.Activity; | |
| import android.content.Context; | |
| import android.content.pm.ActivityInfo; | |
| import android.content.pm.ApplicationInfo; | |
| import android.content.pm.PackageInfo; | |
| import android.content.pm.PackageManager; |