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
{ "answerTemplates" : [ { "id" : "idAnswerTemplate-0", | |
"idQuestionTemplate" : "idQuestionTemplate-0", | |
"orderAnswer" : 1, | |
"response" : "Una posible respuesta", | |
"scoreFactor" : 10.0 | |
}, | |
{ "id" : "idAnswerTemplate-3", | |
"idQuestionTemplate" : "idQuestionTemplate-0", | |
"orderAnswer" : 1, | |
"response" : "Otra respuesta", |
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 minimatch = require('minimatch'); | |
minimatch('myfile.js',"**.js"); //true |
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 mocha = require('mocha'); | |
var should = require('should'); | |
//Our fake validation component | |
var Validator = { | |
validateName:function(name){ | |
if (typeof name !== 'string') | |
return false; | |
if(name.length==0) |
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
#!/bin/bash | |
# Change to your android project path | |
SRCPATH="$HOME/Developer/src/android_project_path" | |
# Ftp settings | |
SERVER="ftp.example.com" | |
USER=YOUR_FTP_USER | |
PASS=YOUR_FTP_PASSWORD | |
REMOTEDIR="/" |
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":0, | |
"name":"Cliente 0", | |
"email":"cliente0@email.com", | |
"tel":"123-456-789-0", | |
"description":"" | |
}, | |
{ | |
"id":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
[ | |
{ | |
id:1, | |
name:'hugo' | |
} | |
] |
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
/****Cargar archivo JSON de clientes****/ | |
var http = require('http'); | |
var fs = require('fs'); | |
var querystring = require('querystring'); | |
fs.readFile('Clientes.json', 'utf8', function (err, data) { | |
if (err) { | |
throw err; | |
} | |
var objData = JSON.parse(data); |
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 obj={ | |
AccountId:"123", | |
otraProp:"222" | |
} | |
var obj2={ | |
ACCOUNTID:"12223" | |
} | |
function CambiarPropiedadesAMayusc(obj){ |
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
using (var strreader = new StreamReader(filepath)) | |
{ | |
using (var reader = new JsonTextReader(strreader)) | |
{ | |
while (reader.Read()) | |
{ | |
if (reader.TokenType == JsonToken.StartObject) | |
{ | |
var account = JObject.Load(reader); | |
//GYJ tiene atributo type que puede ser Cliente o Sucursal |
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
/* common nodejs operations*/ |
OlderNewer