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 | |
} |
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; |
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 |
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; | |
} |
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 | |
* |
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 |
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{ |
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 | |
*/ |
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 | |
*/ |
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