Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / save_file_server_side
Last active August 29, 2015 13:57
meteor file reader/save
/*
|
|
| THANKS Fats! he did the hard work
|
|
*/
/*
|
#!/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