start new:
tmux
start new with session name:
tmux new -s myname
import java.io.File | |
import org.rocksdb._ | |
import org.rocksdb.util.SizeUnit | |
import scala.collection.JavaConversions._ | |
// build.sbt | |
// name := "RocksDB" | |
// version := "0.1" | |
// scalaVersion := "2.12.0" | |
// libraryDependencies += "org.rocksdb" % "rocksdbjni" % "5.0.1" |
I hereby claim:
To claim this, I am signing this object:
1. Open your mac...
2. Install some software
3. Install Scoir back-end dependencies
FAILURE: Build failed with an exception. | |
* What went wrong: | |
Execution failed for task ':app:compileDebugJavaWithJavac'. | |
> java.lang.IllegalArgumentException | |
* Exception is: | |
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJavaWithJavac'. | |
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69) |
<intent-filter> | |
<action android:name="android.nfc.action.NDEF_DISCOVERED" /> | |
<data android:mimeType="my/mimetype" /> | |
<category android:name="android.intent.category.DEFAULT" /> | |
</intent-filter> |
<?xml version="1.0" encoding="utf-8"?> | |
<plugins> | |
<plugin name="App" value="com.phonegap.App" /> | |
<plugin name="Geolocation" value="com.phonegap.GeoBroker" /> | |
<plugin name="Device" value="com.phonegap.Device" /> | |
<plugin name="Accelerometer" value="com.phonegap.AccelListener" /> | |
<plugin name="Compass" value="com.phonegap.CompassListener" /> | |
<plugin name="Media" value="com.phonegap.AudioHandler" /> | |
<plugin name="Camera" value="com.phonegap.CameraLauncher" /> | |
<plugin name="Contacts" value="com.phonegap.ContactManager" /> |
navigator.tp.showLong('bar'); |
public class ToastPlugin extends Plugin { | |
private static final String TAG = "ToastPlugin"; | |
private static final String LONG_TOAST_ACTION = "show_long"; | |
private static final int TOAST_MESSAGE_INDEX = 0; | |
@Override | |
public PluginResult execute(String action, JSONArray data, String callbackId) { | |
String toastMessage; | |
try { |
Loading plugins from the AndroidManifest.xml As an alternative to registering plugins through JavaScript plugins can now be loaded via the AndroidManifest, using the meta-data element.
A demo can be found at https://github.com/m00sey/Toasty (you'll need to update the jar to 9.6.1)
Registering a plugin
Plugin names are prefixed with plugin. this is so the keys can be identified when loading the meta data. The value is the fully qualified name.