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 Tarea4Parte1{ | |
public static void main(String[] args) { | |
//<dbhost> <dbport> <dbname> <username> <password> esto es lo que viene en el args[], de la letra | |
String dbhost = args[0]; | |
String dbport = args[1]; | |
String dbname = args[2]; | |
String usuario = args[3]; | |
String pass = args[4]; |
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
asfd |
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 java.io.BufferedReader; | |
import java.io.ByteArrayInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.util.Properties; | |
import com.jcraft.jsch.Channel; | |
import com.jcraft.jsch.ChannelExec; | |
import com.jcraft.jsch.JSch; |
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
//APIS para KONA.JS | |
//Comunicacion con RESTServices | |
var test = function(){ | |
var request = { | |
url : "http://host.com/api", | |
method: HTTP.GET, | |
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
//SQL SERVICE | |
var test = function(){ | |
//example insert | |
var script = { | |
service : "myService1", | |
query : "inser...", | |
update : 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
MyPojo pojo = new MyPojo(); | |
Request request = new Request(){ | |
url = "http://host.com/api"; | |
method = HTTP.POST; | |
data = pojo; | |
header = new HashMap(){ | |
put("X-AUTH-TOKEN","ASDFN1309ASDF93JJAS471JJ3SNE"); | |
} | |
public void onSuccess(Response res){ |
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 test() { | |
var mc = model.open("modelId"); | |
var entityId = "54afd345jn243a453"; | |
var relation = mc.getRelation("persons").findBySource(entityId); | |
relation.add(someEntity); | |
relation.removeAll(); |
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 model = kona.model.open('employee'); | |
var find = function(req) { | |
var name = req.params.get("name"); | |
var find = [ | |
{ | |
first : { | |
$regex : ".*" + name + ".*", | |
$options: 'i' |
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
/* | |
* @autor santiago | |
*/ | |
var model = kona.model.open('User'); | |
var post = function(req) { // POST User to KONA Backend | |
var item = req.body; | |
model.insert(item); | |
return item.get("_id").toString(); //return the id of the created object |
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
<div class="scrollable-content section" ng-controller="UserController"> | |
<input | |
type="text" | |
ng-model="user.name" | |
placeholder="Some user name" | |
/> | |
<input | |
type="text" |
OlderNewer