Skip to content

Instantly share code, notes, and snippets.

View adadgio's full-sized avatar

Romain Bruckert adadgio

View GitHub Profile
/**
* @namespace \bundles\UploadBundle\Component
*/
define(['resumable'], function (Resumable) {
'use strict';
var r = null,
button = null,
uploadedFiles = [],
widget = 'ul#upload-widget-list'; // to show each file progress bar in ul > li(s)
Require JS controller
/**
* @namespace \bundles\UploadBundle\Controller
*/
define(['bundles/UploadBundle/Component/Upload'], function (Upload) {
'use strict';
return {
/**
@adadgio
adadgio / phantom-casperjs-install.sh
Last active November 9, 2015 11:37 — forked from mickaelandrieu/install.sh
Install phantomjs/casperjs on GNU/Linux
#!/bin/bash
# `` sudo sh install.sh ``
# Developement environnement
# Important: use 'i686' instead of 'x86_64'
#
# For stable environnement see also : https://gist.github.com/mickaelandrieu/6312724
echo Installation de Phantomjs
cd /usr/local/share
sudo wget https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2