Skip to content

Instantly share code, notes, and snippets.

View scastiel's full-sized avatar

Sebastien Castiel scastiel

View GitHub Profile
@scastiel
scastiel / covoiturage.js
Created November 18, 2013 20:05
Interrogation de covoiturage.fr avec NodeJS, request et cheerio.
var request = require('request');
var querystring = require('querystring');
var $ = require('cheerio');
var getTrajets = function(depart, arrivee, date, callback) {
var params = {
'fc': depart,
'tc': arrivee,
'd': date,
@scastiel
scastiel / gist:2034119a5ffe6b0350de
Created June 26, 2014 13:02
Use jQuery Validation plugin with Bootstrap
$('#form').validate({
errorPlacement: function(error, element) {
error.appendTo(element.parent(".form-group").find('.help-block'));
},
errorElement: 'span',
errorClass: 'has-error',
validClass: 'has-success',
highlight: function(element, errorClass, validClass) {
$(element).parents('.form-group').addClass(errorClass).removeClass(validClass);
},
@scastiel
scastiel / index.html
Last active August 29, 2015 14:06 — forked from anonymous/index.html
<div id="parent">
<div id="child">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris convallis, diam eget mattis mollis, arcu ante pharetra lorem, non rutrum eros sem eget elit
</div>
</div>
@scastiel
scastiel / index.html
Created September 3, 2014 10:15
A Pen by Anonasaurus Rex.
<div id="parent">
<div id="child">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris convallis, diam eget mattis mollis, arcu ante pharetra lorem, non rutrum eros sem eget elit
</div>
</div>
@scastiel
scastiel / 01_series.png
Last active August 27, 2015 12:07
Series rating vs last episode rating
01_series.png
Verifying that +scastiel is my blockchain ID. https://onename.com/scastiel
contract Roulette {
uint public lastRoundTimestamp;
uint public nextRoundTimestamp;
address _creator;
uint _interval;
enum BetType { Single, Odd, Even }
function A(n) {
if (n === 0) {
return [ 841, 1189 ];
} else {
var dimAn1 = A(n - 1);
return [Math.floor(dimAn1[1] / 2), Math.floor(dimAn1[0])];
}
}
window.A = A;
const objA = {
a: 1,
b: 2
}
const objB = {
... objA
b: 3,
c: 4
}

Keybase proof

I hereby claim:

  • I am scastiel on github.
  • I am scastiel (https://keybase.io/scastiel) on keybase.
  • I have a public key whose fingerprint is 9CEA AA61 AD13 575B 1D5D F9D0 AE15 CE93 4EC9 436C

To claim this, I am signing this object: