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
//app.js Socket IO Test | |
var app = require('express').createServer(), | |
redis = require('socket.io/node_modules/redis'), | |
io = require('socket.io').listen(app); | |
var pub = redis.createClient(port, "url"); | |
var sub = redis.createClient(port, "url"); | |
var store = redis.createClient(port, "url"); | |
pub.auth('pass', function(){console.log("adentro! pub")}); | |
sub.auth('pass', function(){console.log("adentro! sub")}); |
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
/** | |
* Mariano Julio Vicario aka Ranu - TW: @el_ranu | |
* http://www.ranu.com.ar | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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 static LedgerJournalTable findByGeneralJournalEntry( GeneralJournalEntry journalEntry ) | |
{ | |
LedgerJournalTable journalTable; | |
LedgerEntryJournal journalLink; | |
; | |
select firstOnly * from journalLink where journalLink.RecId == journalEntry.LedgerEntryJournal | |
join journalTable where journalTable.JournalNum == journalLink.JournalNumber;// && | |
//journalTable.dataAreaId == journalLink.LedgerJournalTableDataAreaId; |
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
LedgerJournalTable jourTable, origJornalTable; | |
LedgerJournalTrans jourTrans, origJournalTrans; | |
SubledgerVoucherGeneralJournalEntry jourLink; | |
; | |
origJornalTable = LedgerJournalTable::findByGeneralJournalEntry(journalEntry); | |
if(origJornalTable){ | |
select * from origJournalTrans where origJournalTrans.JournalNum == origJornalTable.JournalNum | |
join jourLink where jourLink.GeneralJournalEntry == journalEntry.RecId && origJournalTrans.Voucher == jourLink.Voucher; |
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
TableMapper mp = new TableMapper(); | |
TestTable1 tb1; | |
TestTable2 tb2; | |
; | |
mp.MapTable(tb1, tb2) | |
.Bind("Int2", "SomeInt") | |
.Bind("Name","FullName") | |
.Bind("Url", "Web") | |
.Ignore("Utc") |
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
//More info: http://javascript.crockford.com/private.html | |
function Vehicle() { | |
this.pepe = function(){ | |
console.log('pepe'); | |
}; | |
} | |
Vehicle.prototype.drive = function () { |
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 injector = angular.injector(['module1', module2, 'ng']); | |
var service = injector.get("serviceName"); |
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
git remote update | |
git checkout -t -b nameBranch remote/branch | |
git branch -vv (to check, two Vs) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="json to html form" /> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
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 x, o1, o2, r1, r2, r3; | |
x = 4; | |
o1 = {x: 2}; | |
o2 = {x: 7}; | |
f = function(m, n) {return m * n * this.x;}; | |
r1 = f(3, 1)); | |
r2 = f.call(o1,3, 1)); | |
r3 = f.apply(o2,[3, 1])); |
OlderNewer