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
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 | |
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
(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) |
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(":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" |
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
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 |
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: 'android' | |
android { | |
compileSdkVersion 19 | |
buildToolsVersion "19.0.1" | |
defaultConfig { | |
minSdkVersion 8 | |
targetSdkVersion 19 | |
versionCode 1 |
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
# Get rid of debug output calls. | |
-assumenosideeffects class android.util.Log { | |
public static *** d(...); | |
public static *** v(...); | |
} | |
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
# 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 |
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
# 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 |
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
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 |
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 KawaCompileTask extends DefaultTask { | |
@InputFiles | |
Set<File> source = [] as Set; | |
String classpath; | |
@TaskAction | |
void compile() { | |
println "compiling kawa sources..." | |
project.exec { |