Skip to content

Instantly share code, notes, and snippets.

View trivoallan's full-sized avatar
💭
♫ Join us now and share the software; You'll be free, hackers ♫

Tristan Rivoallan trivoallan

💭
♫ Join us now and share the software; You'll be free, hackers ♫
View GitHub Profile
/*
* Aggrégation des données
*/
db.request.mapReduce(
function() {
key = this.idClient,
value = {
user_id: this.tagCommanderData.user_id,
dateCreated: this.dateCreated
};
@trivoallan
trivoallan / vagrant.org
Created September 13, 2011 13:20 — forked from zellyn/vagrant.org
Setting up a CentOS 5.4 base box for Vagrant
#!/bin/sh
VERSION=0.1.1-rc2
ENVIRONMENT=preproduction
PROJECT=robusto
EMAIL=tristan.rivoallan@aramisauto.com
git remote update
git checkout develop && git pull origin develop
git checkout master && git pull origin master
var s=document.createElement('script');
s.setAttribute('src','http://jquery.com/src/jquery-latest.js');
document.getElementsByTagName('body')[0].appendChild(s);
function jqueryWait() {
if(typeof window.jQuery == 'undefined') {
window.setTimeout(jqueryWait,100);
} else{
$ = window.jQuery;
doJQuery();