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
/** | |
* This file was auto-generated by the Titanium Module SDK helper for Android | |
* Appcelerator Titanium Mobile | |
* Copyright (c) 2009-2013 by Appcelerator, Inc. All Rights Reserved. | |
* Licensed under the terms of the Apache Public License | |
* Please see the LICENSE included with this distribution for details. | |
* | |
*/ | |
package com.example.androidextension; |
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
#import "ComObscureOverlaytestDerpView.h" | |
@implementation ComObscureOverlaytestDerpView | |
- (void)initializeState | |
{ | |
label = [[UILabel alloc] initWithFrame:CGRectZero]; | |
label.text = @"hello, world!"; | |
label.backgroundColor = [UIColor greenColor]; | |
[self addSubview:label]; |
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
module.exports.afterModelCreate = function(Model) { | |
Model = Model || {}; | |
Model.prototype.idAttribute = '_id'; // true for all TouchDB documents | |
Model.prototype.config.Model = Model; // needed for fetch operations to initialize the collection from persistent store | |
Model.prototype.attachmentNamed = function(name) { | |
var doc = db.documentWithID(this.id); | |
if (doc) { | |
return doc.currentRevision.attachmentNamed(name); |
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
# assumes you have "load": "setup" in your kanso.json | |
module.exports = | |
views: require './views' | |
lists: require './lists' | |
validate_doc_update: (newDoc, oldDoc, userCtx, secObj) => | |
if newDoc._deleted == true | |
throw { forbidden: 'Docs live forever!' } |
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
function(doc) { | |
for (var i in doc) { | |
if (i[0] != '_' && doc.hasOwnProperty(i)) { | |
emit(parseInt(i), null); | |
} | |
} | |
} |
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
public void doSomething() { | |
} | |
@Kroll.method | |
public void foogle(KrollFunction callback) { | |
final MyProxy self = this; | |
callback.call(this.getKrollObject(), new Object[] { | |
new KrollFunction() { | |
public Object call(KrollObject krollObject, Object[] args) { | |
self.doSomething(); |
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
16:12:24.722| Logging mode 2 enabled in domains: {CBL_Router, CBL_URLProtocol, CBLReplication, ChangeTracker, Sync, SyncVerbose} | |
16:12:24.725| Sync: ReplicatorManager scanning existing _replicator docs... | |
16:12:24.751| Sync: ReplicatorManager done scanning. | |
16:12:29.849| Sync: CBL_Puller[http://lite.couchbase./source/] STARTING ... | |
16:12:29.849| CBLBasicAuthorizer initWith <http://lite.couchbase./source/> | |
16:12:29.954| Sync: CBL_Puller[http://lite.couchbase./source/]: Going online | |
16:12:29.954| Sync: CBL_Puller[http://lite.couchbase./source/]: postProgressChanged (0/0, active=1 (batch=0, net=1), online=1) | |
16:12:29.954| SyncVerbose: CBL_Puller[http://lite.couchbase./source/]: GET _local/235aa4ef8704428da3bcd63596f7efc7269d840f | |
16:12:29.957| Sync: CBL_Puller[http://lite.couchbase./source/]: postProgressChanged (0/0, active=1 (batch=0, net=1), online=1) | |
16:12:29.957| CBLReplication: CBLReplication[from http://lite.couchbase./source/]: mode=3, completed=0, total=0 (changed=1) |
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
function curlDown(e) { | |
$.back.close({ transition: Ti.UI.iPhone.AnimationStyle.CURL_DOWN }); | |
} |
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
".container": { | |
backgroundColor:"white" | |
}, | |
"#header": { | |
top: 0, | |
height: 40, | |
backgroundColor: 'yellow' | |
}, |
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
var args = arguments[0] || {}; | |
var event = args.event; | |
var parent = args.parent; | |
$.addEventListener('swipe', function(e) { | |
parent.swipe(e); | |
} |