Skip to content

Instantly share code, notes, and snippets.

View PierrickP's full-sized avatar
🦦

Pierrick PAUL PierrickP

🦦
View GitHub Profile
<span>Blabla</span>
<span>Blabla</span>
<span>Blabla</span>
<ul id="part">
<li>
<h2>Nos partenaires</h2>
<ul>
<li>bla</li>
<li>bla</li>
</ul>
</li>
<li>
<input type="radio">
@PierrickP
PierrickP / robot.js
Created December 6, 2012 14:19
LeMulot
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(2000);
@PierrickP
PierrickP / robot.js
Created December 6, 2012 17:07
Find&shoot
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
this.find = false;
this.shot = 0;
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
Lian Li Mini-Q PC-Q07 USB 3.0 Edition (noir) 54,90 €
Be Quiet ! Alimentation Pure Power L7-430W 80PLUS 52,95 €
Gigabyte H77N-WIFI 96,95 €
Intel Core i3-3220 (3.3 GHz) 109,95 €
Corsair XMS3 8 Go (2x 4 Go) DDR3 1600 MHz 59,55 €
Samsung SSD 840 120 Go 89,95 €
WD Green Desktop 1 To SATA 6Gb/s 69,75 €
BenQ 21.5" LED - GW2250HM 135,90 €
Logitech Wireless Touch Keyboard K400 39,00 €
requirejs.config({
waitSeconds : 60,
paths: {
'jQuery': '/js/lib/jquery.min',
'nouislider': '/js/lib/jquery/jquery.nouislider.min',
},
shim: {
'jQuery': {
exports: 'jQuery'
},
var Mongo = require('mongodb');
var fs = require('fs'),
async = require('async');
Mongo.connect("mongodb://localhost:27017/aggregation_test?w=1", function(err, db) {
var collection = db.collection('tree');
var time = Date.now();
collection.aggregate(
{