Skip to content

Instantly share code, notes, and snippets.

Yohan Boutin ybootin

Block or report user

Report or block ybootin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ybootin
ybootin / Dockerfile
Last active Aug 29, 2015
dockerfile for haxe 2.10
View Dockerfile
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 Dec 1, 2014
haxe version from command line
View haxe-version.sh
#!/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 Aug 29, 2015
Keru simple HTML app
View checklist.html
<!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 Aug 29, 2015
global npm unlinker
View npm-unlink.js
View Vagrantfile
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 Jan 6, 2016
A simple polyfill of DOM ProgressEvent, work in PhantomJS
View ProgressEvent.js
(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
}
View README.md
@ybootin
ybootin / README.md
Last active Sep 15, 2016
A simple loader for Mamejs emulator - run shinobi
View README.md
View request-timeout-server.js
// 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 Nov 30, 2016
Simple JSON Viewer
View index.html
<!doctype html>
<html>
<head>
<style>
.json-tree {
font-size: 10px;
font-family: Monaco;
}
.json-tree-button {
You can’t perform that action at this time.