View add_time.js
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
function addDaysToDate(date,numberOfDays){ | |
return new Date( | |
date.getTime() + | |
daysToMilliseconds(numberOfDays) | |
); | |
} | |
function daysToMilliseconds(days){ | |
return days * 86400000 | |
} |
View ratchet-dispatcher.js
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
window.Dispatcher = (function(win){ | |
var instance; | |
function init(){ | |
var | |
callbackRegister = {}, | |
pageCheck; |
View git_remove_residual_files_and_folders.sh
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
git reset --hard && git clean -f -d |
View getBrowserEvents.js
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
function getBrowserEvents () | |
{ | |
var browserEvents = []; | |
for (var e in document) if (typeof document[e] !== "function" && e !== null && e.substring(0, 2) === "on") browserEvents[browserEvents.length] = e.substring(2); | |
return browserEvents; | |
} |
View Dispatcher.js
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
/** @constructor */ | |
function Dispatcher(context, events) { | |
this.ctx = context; | |
this.events = events; | |
this.listeners = {}; | |
} | |
/** | |
* Adds an event listener to an event | |
* |
View ApiResponse.php
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
<?php | |
namespace App\Library\Response; | |
use GuzzleHttp\Message\Response; | |
class ApiResponse | |
{ | |
/* | |
* The status code of a response represented as a single integer | |
* denoting the general status of the response |
View SpreadSheetGenerator.php
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
<?php | |
namespace App\Library\Generators; | |
use PHPExcel\PHPExcel; | |
use PHPExcel\PHPExcel_IOFactory; | |
use PHPExcel\PHPExcel_Cell; | |
class SpreadSheetGenerator{ |
View AjaxValidatableRequest.php
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
<?php | |
namespace App\Http\Requests; | |
use Illuminate\Validation\ValidationException; | |
/** | |
* Description of AjaxValidatableFormRequest | |
* | |
* @author msalisu | |
*/ |
View TrimmedFormRequest.php
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
<?php | |
namespace App\Http\Requests; | |
use Illuminate\Foundation\Http\FormRequest; | |
/** | |
* Description of AjaxValidatableFormRequest | |
* | |
* @author msalisu | |
*/ |
View test.scala
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
val meaningOfLife = 42 |
NewerOlder