- Ubuntu 14.04 LTS x64
- Java 1.7
- Jenkins 1.639
- NodeJS plugin 0.2.1
This file contains hidden or 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
// Linear Congruential Generator | |
// Variant of a Lehman Generator | |
var lcg = (function() { | |
// Set to values from http://en.wikipedia.org/wiki/Numerical_Recipes | |
// m is basically chosen to be large (as it is the max period) | |
// and for its relationships to a and c | |
var m = 4294967296, | |
// a - 1 should be divisible by m's prime factors | |
a = 1664525, | |
// c and m should be co-prime |
This file contains hidden or 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
// using constructor to clone object | |
var A = function(){ | |
this.array = ['a','b','c']; | |
}; | |
var a = new A(); | |
console.log(a.array); | |
// ["a", "b", "c"] | |
var b = new A(); |
This file contains hidden or 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
<div class="container"> | |
<div class="row"> | |
<div class="col-xs-offset-4 col-xs-4"> | |
<div class="section-title"><span>Login Form</span></div> | |
{#errors} | |
<div class="alert alert-danger alert-dismissible" role="alert"> | |
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span | |
class="sr-only">Close</span></button>{@i18n}{.}{/i18n}</div> | |
{/errors} | |
<form role="form" action="/auth/local" method="post" class="cannes-form"> |
This file contains hidden or 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
package controllers | |
import play.api.mvc._ | |
import scala.concurrent._ | |
import akka.actor.{Props, Actor} | |
import play.api.Play.current | |
import play.api.libs.concurrent.Akka | |
import scala.concurrent.ExecutionContext.Implicits._ | |
object Application extends Controller { |
This file contains hidden or 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
//Example for force install DB | |
Route::get('/install', function() | |
{ | |
echo '<br>init migrate'; | |
Artisan::call('migrate'); | |
echo 'done migrate'; | |
echo '<br>init with tables seeder...'; | |
Artisan::call('db:seed'); | |
echo '<br>done with tables seeder'; |