Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
sudo apt-get install build-essential -y
sudo apt-get install python-software-properties
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update -y
sudo apt-get install nodejs -y
sudo apt-get install mongodb -y
sudo apt-get install git -y
sudo apt-get install nginx -y
@cristiandley
cristiandley / save_file_server_side
Last active August 29, 2015 13:57
meteor file reader/save
/*
|
|
| THANKS Fats! he did the hard work
|
|
*/
/*
|
@cristiandley
cristiandley / gist:9644123
Created March 19, 2014 15:25
Select2 XPages Bootstrap3
Original Select2: http://ivaynberg.github.io/select2/
Append: http://fk.github.io/select2-bootstrap-css/index.html
xSelector:
function x$(idTag, param){ //Updated 18 Feb 2012
idTag=idTag.replace(/:/gi, "\\:")+(param ? param : "");
return($("#"+idTag));
}
@cristiandley
cristiandley / fullcalendarConf
Created March 20, 2014 12:32
jQuery FullcalendarConf
var restCon = $("[id$=calendar]");
var urlVal = function() {
var restUrl = "/rest/ulr/to/get/data";
return restUrl;
}
restCon.fullCalendar({
defaultView: 'agendaDay',
firstDay: 0,
header: {
left: "prev,next today",
@cristiandley
cristiandley / pdfCreatorLotus
Created April 15, 2014 08:58
CREAR PDF en LOtUS SSJS
/*
|
| IMPORTO PAQUETES
|
*/
importPackage(com.itextpdf);
importPackage(java.io);
/*
|
| INI
@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 / 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 / defABM
Last active August 29, 2015 14:01
definicionABM
if(Meteor.isClient) {
/*
|---------------------------------------
| DEFINICION DE TEMPLATES
|---------------------------------------
*/
var Definicion = {
TemplateBase : Template.listadoPersonas,
@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 / 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>