Skip to content

Instantly share code, notes, and snippets.

View mariusk's full-sized avatar

Marius Kjeldahl mariusk

View GitHub Profile
save_bucket = (bucketname, bucketpw, id, json, cb) ->
my_cluster = new couchbase.Cluster 'couchbase://localhost:#{argv.port}'
my_bucket = my_cluster.openBucket bucketname, bucketpw
my_bucket.replace id, json, cb
(require 'multi-web-mode)
(setq mweb-default-major-mode 'html-mode)
(setq mweb-tags '((php-mode "<\\?php\\|<\\? \\|<\\?=" "\\?>")
(js-mode "<script +\\(type=\"text/javascript\"\\|language=\"javascript\"\\)[^>]*>" "</script>")
(js-mode "<script>" "</script>")
(css-mode "<style +type=\"text/css\"[^>]*>" "</style>")))
(setq mweb-filename-extensions '("php" "htm" "html" "ctp" "phtml" "php4" "php5"))
(multi-web-global-mode 1)
project(":android") {
apply plugin: "android"
configurations { natives }
dependencies {
compile project(":core")
compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
You can find a screenshot containing the actual render together with my
sketch at http://snag.gy/qec82.jpg .
It's pretty basic, a "container" containing "items" containing "lines", where
lines get modified at random about every half second. For simplicity, now lines
are deleted or added yet, they are just mutated as-is.
What I'm trying to accomplish is mutating the lines with animation effects
using React and CSSTransitionGroup by changing the state from outside the
classes themselves (typically what would happen with an updated pushed from
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion "19.0.1"
defaultConfig {
minSdkVersion 8
targetSdkVersion 19
versionCode 1
# Get rid of debug output calls.
-assumenosideeffects class android.util.Log {
public static *** d(...);
public static *** v(...);
}
# java -cp /opt/android-studio/sdk/tools/proguard/lib/ -jar /opt/android-studio/sdk/tools/proguard/lib/proguard.jar @proguard.cfg -verbose && /Users/marius/src/robovm/bin/robovm -verbose -arch x86 -os ios -cp app.jar -bcp rt.jar -skiprt -run IOSDemo
-injars /Users/marius/src/robovm/rt/target/robovm-rt-0.0.10-SNAPSHOT.jar
-outjars rt.jar
#-injars /Users/marius/src/robovm/rt/target/robovm-rt-0.0.10-SNAPSHOT.jar
-injars /Users/marius/src/robovm/objc/target/robovm-objc-0.0.10-SNAPSHOT.jar
-injars /Users/marius/src/robovm/cocoatouch/target/robovm-cocoatouch-0.0.10-SNAPSHOT.jar
-injars classes
# java -cp /opt/android-studio/sdk/tools/proguard/lib/ -jar /opt/android-studio/sdk/tools/proguard/lib/proguard.jar @proguard.cfg -verbose
# robovm-0.0.9/bin/robovm -verbose -arch x86 -os ios -cp tmp.jar -run IOSDemo
#
# robovm-0.0.9/bin/robovm -verbose -arch x86 -os ios -cp robovm-0.0.9/lib/robovm-objc.jar:robovm-0.0.9/lib/robovm-cocoatouch.jar:classes/ -run IOSDemo
-injars robovm-0.0.9/lib/robovm-rt.jar
-outjars rt.jar
#-libraryjars robovm-0.0.9/lib/robovm-rt.jar
-injars robovm-0.0.9/lib/robovm-objc.jar
cd ~marius/AndroidStudioProjects/KawaTest; ./gradlew clean assembleDebug && adb install -r app/build/apk/app-debug-unaligned.apk && adb shell "am start -n net.kjeldahl.kawatest.app.KawaActivity"
Relying on packaging to define the extension of the main artifact has been deprecated and is scheduled to be removed in Gradle 2.0
:app:clean
:app:kawaAssembleDebug
prj: project ':app'
kawa invoked with args: [-d, /Users/marius/AndroidStudioProjects/KawaTest/app/build/classes/debug, -C, /Users/marius/AndroidStudioProjects/KawaTest/app/src/main/kawa/net/kjeldahl/kawatest/KawaActivity.scm]
(compiling /Users/marius/AndroidStudioProjects/KawaTest/app/src/main/kawa/net/kjeldahl/kawatest/KawaActivity.scm to net.kjeldahl.kawatest.app.KawaActivity)
:app:compileDebugNdk
:app:preBuild
:app:preDebugBuild
public class KawaCompileTask extends DefaultTask {
@InputFiles
Set<File> source = [] as Set;
String classpath;
@TaskAction
void compile() {
println "compiling kawa sources..."
project.exec {