This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "json" | |
require "date" | |
require 'active_support' | |
require 'active_support/core_ext' | |
EPSILON = 0.016 | |
FOX_PARAMS = [ | |
{ | |
rank_sup: -1800, | |
number_of_games: 10, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 |