Skip to content

Instantly share code, notes, and snippets.

program ejercicio12sept;
uses crt;
uses sysutils;
{ --------------------- DECLARACION ---------------------}
{resultados tabla categoria - cantidad - total sueldo}
var cant_a, cant_b, cant_c,total_a, total_b, total_c: integer;
{resultados tabla captication - cantidad - confirmado}
var conf_office, conf_tango, conf_redes: integer;
@cristiandley
cristiandley / javasession
Last active August 30, 2016 21:21
sessionNotDying
import java.io.IOException;
import java.security.Principal;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.Cookie;
@cristiandley
cristiandley / coordinatesGenerator
Created May 18, 2016 12:02
Generate Coordinates, you should change the -68 -38 and min max of your coordinates city
function pad (str, max) {
str = str.toString();
return str.length < max ? pad("0" + str, max) : str;
}
function rand(min,max)
{
return Math.floor(Math.random()*(max-min+1)+min);
}
[global]
workgroup = GRUPODETRABAJO
server string = Samba Server %v
netbios name = misamba
security = user
map to guest = bad user
dns proxy = no
#============================ Share Definitions ==============================
[Anonymous]
path = /samba/anonymous
@cristiandley
cristiandley / loopeach
Created June 9, 2015 16:10
loopEachMeteor
{{#each personas}}
<p>persona.nombre</p>
{{#each persona.mascotas}}
<button>persona.id</button>
<p>mascota.nombre</p>
@cristiandley
cristiandley / replacechar
Created November 7, 2014 16:48
Replace an specific kind of chars
/**
* REPLACE ALL CHARS
* (but the name is not.... i know!)
*/
String.prototype.replaceChar=function(position, char) {
return this.substr(0, position) + char + this.substr(position, this.length);
}
String.prototype.replaceAllChars = function(thisChar, forThisChar){
@cristiandley
cristiandley / defABM
Last active August 29, 2015 14:01
definicionABM
if(Meteor.isClient) {
/*
|---------------------------------------
| DEFINICION DE TEMPLATES
|---------------------------------------
*/
var Definicion = {
TemplateBase : Template.listadoPersonas,
@cristiandley
cristiandley / sidebar_edited
Created April 24, 2014 14:08
SUBLIME SIDE BAR
[
{
"class": "sidebar_container",
// $base01: #586e75
"layer0.tint": [88,110,117],
"layer0.opacity": 1.0,
"layer0.draw_center": false,
"layer0.inner_margin": [0, 0, 1, 0],
"content_margin": [0, 0, 15, 0]
@cristiandley
cristiandley / readCsvMeteor
Created April 15, 2014 09:02
READ A CSV ON METEOR
/*
|
| READ CALL .html
|
*/
<template name="csvRead">
<input type="button" value="Click" />
</template>
@cristiandley
cristiandley / pdfCreatorLotus
Created April 15, 2014 08:58
CREAR PDF en LOtUS SSJS
/*
|
| IMPORTO PAQUETES
|
*/
importPackage(com.itextpdf);
importPackage(java.io);
/*
|
| INI