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 System; | |
using System.Data; | |
using System.Data.SqlClient; | |
using System.Linq; | |
using System.Reflection; | |
public static class DataUtil | |
{ | |
public static T Fill<T>(string procedureName, string connectionString, object values = null, object mappings = null) where T : DataSet, new() | |
{ |
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 System; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Net.Mail; | |
using System.Web; | |
using System.Web.Mvc; | |
using System.Web.Routing; | |
public abstract class MailerBase : ControllerBase | |
{ |
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
Array.prototype.sum = function (selector) { | |
var source = this; | |
var totalSum = 0; | |
for (var i = 0; i < source.length; i++) { | |
totalSum += selector(source[i]); | |
} | |
return totalSum; | |
}; |
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 doc = window.frames[1] ? window.frames[1].frames[0].document : document, | |
user = doc.all.usuario_id.value, | |
array = doc.querySelectorAll(".linkmenu > div[width]"), | |
list = [], | |
url = "/SCP/cargaHoras/blanco.asp", | |
proyecto = getByName('cmb_proyectos'), | |
tarea = getByName('cmb_tareas'), | |
empresa = getByName('cmb_empresas'), | |
request = { | |
usuario: user, |
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 batch(array, size, callback, done) { | |
var index = 0, | |
processed = 0; | |
while (index < size) { | |
next(); | |
} | |
function next() { | |
var item = array[index]; |
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 container = (function() { | |
var instances = {}; | |
return { | |
set: function (key, value) { | |
instances[key] = value; | |
}, | |
get: function (key) { | |
return instances[key] | |
} |
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
SET @scriptName = '$(fileName)' | |
DECLARE @count int | |
select @count = count(Name) from Script where Name = @scriptName and RanOk = 1 | |
IF (@count = 0) | |
BEGIN | |
BEGIN TRY | |
BEGIN TRANSACTION |
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
IF ( OBJECT_ID('dbo.RunScript') IS NOT NULL ) | |
DROP PROCEDURE dbo.RunScript | |
GO | |
CREATE PROCEDURE dbo.RunScript | |
@scriptUrl nvarchar(max) | |
AS | |
BEGIN | |
SET NOCOUNT ON |
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
I, Nicolas Escalante, have read and do accept the MuleSoft Contributor Agreement | |
at http://www.mulesoft.org/legal/contributor-agreement.html | |
Accepted on Thu Dec 11 2014 18:56:55 GMT-0300 (Argentina Standard Time) |
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
if (!document.getElementsByClassName) { | |
document.getElementsByClassName = function(search) { | |
var d = document, elements, pattern, i, results = []; | |
if (d.querySelectorAll) { // IE8 | |
return d.querySelectorAll("." + search); | |
} | |
if (d.evaluate) { // IE6, IE7 | |
pattern = ".//*[contains(concat(' ', @class, ' '), ' " + search + " ')]"; | |
elements = d.evaluate(pattern, d, null, 0, null); | |
while ((i = elements.iterateNext())) { |
OlderNewer