Skip to content

Instantly share code, notes, and snippets.

View bbrochier's full-sized avatar
:octocat:
Happy coder !

Benniboom bbrochier

:octocat:
Happy coder !
View GitHub Profile
@bbrochier
bbrochier / README.md
Created November 12, 2019 22:01
SCRIPT-8
@bbrochier
bbrochier / README.md
Created November 12, 2019 21:58
SCRIPT-8
@bbrochier
bbrochier / README.md
Created November 12, 2019 21:56
SCRIPT-8
@bbrochier
bbrochier / README.md
Created November 9, 2019 20:44
SCRIPT-8
http://gamedev.docrobs.co.uk/creating-objects-in-pico-8-using-tables-to-imitate-classes
@bbrochier
bbrochier / xmlParser.js
Created February 22, 2017 16:44
Vuejs method for xml parser with jquery
fetchLive: function() {
var self = this;
$.when(
$.ajax({
url: 'http://www.skiplan.com/php/genererXml.php?pays=france&region=alpes&station=val-d-isere&v=2',
success: function(data) {
var $xml = $(data);
//remontees
self.valdisere.remontees.total = parseInt($xml.find('REMONTEES').attr('total_periode'), 10);
self.valdisere.remontees.opened = parseInt($xml.find('REMONTEES').attr('ouvertes_previsions'), 10);
@bbrochier
bbrochier / index.php
Created February 13, 2017 14:15
Traduction php
<?php
if (isset($_GET['lang']) && $_GET['lang'] == 'en') {
include 'traductions_en.php';
} else {
include 'traductions_fr.php';
}
?>
<html>
<body>
@bbrochier
bbrochier / counter.html
Created September 9, 2016 13:32
Animate counter on scroll when visible
<div data-counter>1000</div>
@bbrochier
bbrochier / link-seo.css
Last active June 24, 2016 10:29
Click on the parent trigger the link inside
@bbrochier
bbrochier / clickoutside.js
Created February 26, 2016 09:17
Click outside
/* ==========================================================================
CLICK OUTSIDE
========================================================================== */
//https://css-tricks.com/dangers-stopping-event-propagation/
$(document).on('click', function(event) {
/* My dropdown
========================================================================== */