I hereby claim:
- I am m4tthumphrey on github.
- I am m4tthumphrey (https://keybase.io/m4tthumphrey) on keybase.
- I have a public key ASCPU08sRfv13I-0U4icO5HUvPchBubdlvdCuY6BOFnC4Qo
To claim this, I am signing this object:
<?php | |
Response::macro('streamed', function($type, $size, $name, $callback) { | |
$start = 0; | |
$length = $size; | |
$status = 200; | |
$headers = [ | |
'Content-Type' => $type, | |
'Content-Length' => $size, |
<?php | |
/* | |
* Plugin: StreamlineFoundation | |
* | |
* Class: Schedule | |
* | |
* Description: Provides scheduling mechanics including creating a schedule, testing if a specific moment is part of the schedule, moving back | |
* and forth between scheduled moments in time and translating the created schedule back to a human readable form. | |
* | |
* Usage: ::fromCronString() creates a new Schedule class and requires a string in the cron ('* * * * *', $language) format. |
<?php | |
use FFMpeg\Media\Audio; | |
use FFMpeg\Format\AudioInterface; | |
use FFMpeg\Filters\Audio\AudioFilterInterface; | |
class ConcatAudioFilter implements AudioFilterInterface | |
{ | |
private $files; | |
private $priority; |
I hereby claim:
To claim this, I am signing this object:
<?php namespace ContractsBundle\Dbal\Types; | |
use Doctrine\DBAL\Platforms\AbstractPlatform; | |
use Doctrine\DBAL\Types\Type; | |
class JsonSerializable extends Type | |
{ | |
public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) | |
{ | |
return 'json'; |
<?php | |
// this should be called the first time 'manager' is resolved from the container | |
$container->get('manager')->registerPolicy(new Policy()); | |
<?php | |
function remove_dir($dir) | |
{ | |
$files = array_diff(scandir($dir), array('.','..')); | |
foreach ($files as $file) { | |
(is_dir("$dir/$file")) ? remove_dir("$dir/$file") : unlink("$dir/$file"); | |
} |
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:git-core/ppa | |
sudo apt-get update | |
sudo apt-get install git | |
sudo apt-get install libmysql-ruby libmysqlclient-dev |
<?php | |
/** | |
* An helper file for Laravel 4, to provide autocomplete information to your IDE | |
* Generated with https://github.com/barryvdh/laravel-ide-helper | |
* | |
* @author Barry vd. Heuvel <barryvdh@gmail.com> | |
*/ | |
exit('Only to be used as an helper for your IDE'); | |
class App extends Illuminate\Support\Facades\App{ |
public function getUser($id) | |
{ | |
$user = new UserVO($this); | |
$user->findByID($id); | |
return $user; | |
} |