This file contains 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
{ | |
"_id": "replication_task", | |
"source": "https://user:pass@example.iriscouch.com:6984/source-database", | |
"target": "target-database", | |
"user_ctx": { | |
"user": "admin", | |
"roles": [ | |
"_admin" | |
] | |
}, |
This file contains 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 eu.pulsation.alarmsandbox | |
import android.accounts.{AccountAuthenticatorActivity, AccountManager} | |
import android.os.Bundle | |
import android.app.Activity | |
import android.widget.{Button, EditText} | |
import android.view.View.OnClickListener | |
import android.view.View | |
import android.accounts.Account |
This file contains 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
mynamespace = window.mynamespace || {}; | |
mynamespace.Parent = function (param) { | |
var _privateProperty = param; | |
return { | |
getTwice : function () { | |
return _privateProperty * 2; | |
} |
This file contains 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
navigator.camera.getPicture( | |
function (imageData) { | |
var request = new enyo.Ajax({ | |
url: "http://my_server_address:5984/mobility_camera_test/", | |
method: "POST", | |
handleAs: "json", | |
contentType: "application/json", | |
postBody: '{"image": "' + imageData + '"}' | |
}); | |
request.go({}); |
NewerOlder