Skip to content

Instantly share code, notes, and snippets.

View BCoulange's full-sized avatar

Baptiste Coulange BCoulange

View GitHub Profile
require "json"
require "date"
require 'active_support'
require 'active_support/core_ext'
EPSILON = 0.016
FOX_PARAMS = [
{
rank_sup: -1800,
number_of_games: 10,
<input name="imagefile[]" type="file" id="takePictureField" accept="image/*" onchange="uploadPhotos()" />
<form id="uploadImageForm" enctype="multipart/form-data">
<input id="name" value="#{name}" />
</form>
<img src="" id="preview"/>
<script>
window.uploadPhotos = function(){
// Read in file