Skip to content

Instantly share code, notes, and snippets.

View ybootin's full-sized avatar

Yohan Boutin ybootin

  • Seedtag
  • Toulouse
View GitHub Profile
@ybootin
ybootin / Dockerfile
Last active August 29, 2015 14:10
dockerfile for haxe 2.10
FROM ubuntu:12.04
MAINTAINER Yohan Boutin <yohan.boutin@teads.tv>
RUN apt-get update
RUN apt-get -y upgrade
ENV HAXE_LIBRARY_PATH /usr/lib/haxe/std
ENV HAXEPATH /usr/bin/haxe
@ybootin
ybootin / haxe-version.sh
Created December 1, 2014 09:02
haxe version from command line
#!/bin/bash
# retrieve from https://github.com/strk/gnash/blob/master/macros/haxe.m4#L53
haxe -help 2>&1| grep -i ^haxe | awk '{print $'3'}'
@ybootin
ybootin / checklist.html
Last active August 29, 2015 14:11
Keru simple HTML app
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<style>
.checked {
@ybootin
ybootin / npm-unlink.js
Last active August 29, 2015 14:16
global npm unlinker
VAGRANTFILE_API_VERSION = "2"
Vagrant.require_version ">= 1.6.3"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "boot2docker"
config.vm.box = "yungsang/boot2docker"
config.vm.box_check_update = false
@ybootin
ybootin / ProgressEvent.js
Last active January 6, 2016 23:17
A simple polyfill of DOM ProgressEvent, work in PhantomJS
(function(window) {
// http://engineering.shapesecurity.com/2015/01/detecting-phantomjs-based-visitors.html
if (/PhantomJS/.test(window.navigator.userAgent)) {
var ProgressEvent = function(type, eventInit) {
this.type = type
this.lengthComputable = eventInit.lengthComputable
this.loaded = eventInit.loaded
this.total = eventInit.total
}
@ybootin
ybootin / README.md
Last active September 13, 2016 11:36
@ybootin
ybootin / README.md
Last active September 15, 2016 21:24
A simple loader for Mamejs emulator - run shinobi
// A simple webserver to simulate response delay on VAST call
var express = require('express');
var app = express();
var fs = require('fs')
// CORS
app.all('/', function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
@ybootin
ybootin / index.html
Last active November 30, 2016 23:18
Simple JSON Viewer
<!doctype html>
<html>
<head>
<style>
.json-tree {
font-size: 10px;
font-family: Monaco;
}
.json-tree-button {