Skip to content

Instantly share code, notes, and snippets.

var APP = require('core'),
sessionManager = require('session_manager'),
processing = false,
place = APP.contextGet('place');
$.sendCommentBox.addEventListener('click', function() {
if ( processing ) {
Alloy.createController('app_messages/message', {
text: L('waiting'),
timeout: 2000

$ traceroute 192.241.169.199 traceroute to 192.241.169.199 (192.241.169.199), 64 hops max, 52 byte packets

1  192.168.0.1 (192.168.0.1)  3.368 ms  1.283 ms  0.829 ms
2  dynamic-ip-186146801.cable.net.co (186.146.80.1)  30.786 ms  47.058 ms  39.828 ms
3  172.24.110.6 (172.24.110.6)  12.950 ms  16.344 ms  13.799 ms
4  200.26.135.241 (200.26.135.241)  14.548 ms
   static-ip-1901577133.cable.net.co (190.157.7.133)  16.403 ms
   200.26.135.241 (200.26.135.241)  35.527 ms
5  10.14.15.1 (10.14.15.1)  134.339 ms  75.270 ms  75.189 ms
6  64.86.28.1 (64.86.28.1)  86.695 ms  71.224 ms  70.677 ms
<Alloy>
<View id="currentComment" class="boxOpinion">
<ImageView id="avatar"/>
<Label id="currentCommentText"/>
<Label id="deleteComment">X</Label>
</View>
</Alloy>
/**
* Ask mobile development team members how to setup your local development environment
*/
exports.credentials = (function(){
var result = {};
if(ENV_DEV) {
// -- dev server --
/*
result.clientId = '939aa2aec4f7692357a29b66e7109548f136a6c888add77a84ac2fdc70eb5787';

{

DEBUG

“id”: “51e57fd631e93ca83c000a1d”,

DEBUG

“card_type”: “place”,

DEBUG

“name”: “Actibaterias”,

DEBUG

“description”: “Carrera 17 # 51-60”,

DEBUG

“address”: “Carrera 17 # 51-60”,

DEBUG

“email”: “”,

DEBUG

“website”: “”,

DEBUG

“avatar”: “”,

DEBUG

“friends”: [],

"Label": { borderColor: '#646464', borderWidth: '1dip'
}, "View": { borderColor: '#646464', borderWidth: '1dip'
},

"responseJSON": {
"metadata": {
"resultset": {
"limit": 10,
"offset": 1
},
"more_pages": true,
"entities_delivered": 11
},
"case": 2,
<View id="containerImage">
<ImageView id="ilustration" bindId="ilustration"/>
</View>
<View id="containerLabels">
<Label id="title_item" bindId="title_item"/>
<Label id="subtitle_item" bindId="subtitle_item"/>
<Label id="detail_item" bindId="detail_item"/>
</View>
<View id="right_arrow_container">
<Label id="right_arrow" />
{
"id": "52261c5331e93cf020000004",
"name": "",
"description": "",
"status": 1,
"author": "Civico",
"via": "Civico",
"file_url": "http://beta.civico.com/uploads/entity/image/file/004/000/52261c5331e93cf020000004/thumb_03752f9c0f6b4f798f7312137ae33a91.jpg"
},