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
// Custom tableview and tableviewcells with automatic dimensions | |
self.tableView.backgroundColor = UIColor(red: 240.0/255.0, green: 240.0/255.0, blue: | |
240.0/255.0, alpha: 0.2) | |
self.tableView.tableFooterView = UIView(frame: CGRectZero) | |
self.tableView.separatorColor = UIColor(red: | |
240.0/255.0, green: 240.0/255.0, blue: 240.0/255.0, | |
alpha: 0.8) |
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 Schippersagenda\Models; | |
use \Eloquent; | |
class Trip extends Eloquent { | |
/** | |
* @access protected | |
* Table trips | |
* @var string | |
*/ |
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
/** | |
* Relational model for boat trips with Laravel's Eloquent | |
*/ | |
<?php namespace Schippersagenda\Models; | |
use \Eloquent; | |
class Trip extends Eloquent { | |
/** | |
* @access protected |
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
/** | |
* Advanced controller for a grade system for Talent Accelerator that gets all grades on a subject and calculates the average per subject | |
* Response::grades is a Laravel Response macro that simplifies our API responses | |
*/ | |
<?php namespace AppTree\Controllers\API; | |
use Cartalyst\Sentry\Facades\Laravel\Sentry as Sentry; | |
use \Input; | |
use \Response; | |
use \Session; |
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
/** | |
* Advanced controller for a grade system for Talent Accelerator that gets all grades on a subject and calculates the average per subject | |
* Response::grades is a Laravel Response macro that simplifies our API responses | |
*/ | |
<?php namespace AppTree\Controllers\API; | |
use Cartalyst\Sentry\Facades\Laravel\Sentry as Sentry; | |
use \Input; | |
use \Response; | |
use \Session; |
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
/** | |
* Responder Facade for returning a Facade accesor that can be used in the iOC container | |
*/ | |
<?php namespace Simplos\Facades; | |
use Illuminate\Support\Facades\Facade; | |
class Responder extends Facade { | |
/** |
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
/** | |
* Advanced GrowneController that uses SessionManager instances for managing a custom generated Session that is passed with an async call. | |
*/ | |
<?php | |
use Growne\Handlers\GrowneHandler; | |
use Growne\Models\User; | |
use Growne\Models\Task; | |
use Growne\Models\Like; | |
use Growne\Models\Dislike; |
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
/** | |
* Class for creating an Application | |
*/ | |
<?php | |
require_once 'includes/config.inc.php'; | |
require_once 'database.class.php'; | |
class Application | |
{ | |
private $APPLICATION_NAME; | |
private $APPLICATION_PUBLISH_DATE; |
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 to add Dijkstra edges to MediaCollege Amsterdam map | |
* This is the way we calculate which sector to reach from which sector | |
*/ | |
function runTest() { | |
require("includes/config.inc.php"); | |
require("includes/database.inc.php"); | |
$g = new Graph(); |
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
#import "UIAlertController+DKExtensions.h" | |
@implementation UIAlertController (DKExtensions) | |
#define IPAD UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad | |
+ (UIAlertController *)alertWithTitle:(NSString *)title message:(NSString *)message | |
cancelButtonTitle:(NSString *)cancelButtonTitle cancelBlock:(void (^)())cancelBlock; { | |
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:title message:message preferredStyle:UIAlertControllerStyleAlert]; | |
UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:cancelButtonTitle style:UIAlertActionStyleCancel handler:cancelBlock]; |
OlderNewer