Skip to content

Instantly share code, notes, and snippets.

View adericbourg's full-sized avatar

Alban Dericbourg adericbourg

View GitHub Profile

Keybase proof

I hereby claim:

  • I am adericbourg on github.
  • I am adericbourg (https://keybase.io/adericbourg) on keybase.
  • I have a public key whose fingerprint is 4081 FE3D D1A9 852D 85E5 D9D3 1B06 0229 2E75 B788

To claim this, I am signing this object:

controllers.controller('MainCtrl', function($scope, $location, Facebook, $rootScope, $http, $location, Upload, Auth, User, Question, Category, Serie, Record, Location, Popup, Process, Card, Question) {
$scope.$on('authLoaded', function() {
$scope.isExpert($scope.main.serieId);
$scope.isMember($scope.main.serieId);
});
$scope.loadAuth = function() {
Auth.load().success(function(data) {
$scope.main.user = data.user;
$scope.$broadcast("authLoaded");
"Application" should {
"send 404 on a bad request" in {
running(FakeApplication()) {
route(FakeRequest(GET, "/boum")) must beNone
}
}
"render the index page" in {
running(FakeApplication()) {
@adericbourg
adericbourg / cloudbees-SQLException-nosuitabledriver
Last active December 15, 2015 02:39
Trying to get my Play! 2.1 application work on Cloudbees.
The configuration:
$ bees config:list -a baz/foo
Application Parameters:
proxyBuffering=false
MYSQL_USERNAME_DB=foo
MYSQL_PASSWORD_DB=bar
MYSQL_DRIVER=com.mysql.jdbc.Driver
MYSQL_URL_DB=jdbc:mysql://ec2-23-21-211-172.compute-1.amazonaws.com:3306/foo
Runtime Parameters:
@adericbourg
adericbourg / mvncolor.sh
Last active December 11, 2015 02:09 — forked from katta/mvncolor.sh
#!/usr/bin/env bash
# Formatting constants
export BOLD=`tput bold`
export UNDERLINE_ON=`tput smul`
export UNDERLINE_OFF=`tput rmul`
export TEXT_BLACK=`tput setaf 0`
export TEXT_RED=`tput setaf 1`
export TEXT_GREEN=`tput setaf 2`
export TEXT_YELLOW=`tput setaf 3`