Skip to content

Instantly share code, notes, and snippets.

View asgrim's full-sized avatar
😈
Doing evil things, probably. Sorry...

James Titcumb asgrim

😈
Doing evil things, probably. Sorry...
View GitHub Profile
@asgrim
asgrim / opencfp.sql
Created January 13, 2015 08:47
Export talks from OpenCFP
SELECT
/* user */ users.id AS user_id, first_name, last_name, email, company, twitter, airport, url, transportation, hotel, info, bio,
/* talk */ talks.id AS talk_id, title, description, other, type, level, category, slides, desired, sponsor
FROM `talks`, `users`
WHERE talks.user_id = users.id
@mwillbanks
mwillbanks / ZF3Sessions.md
Last active August 29, 2015 14:02
Some ideas around sessions

Sessions

Zend Framework 3 (ZF3) will provide a new session management layer that will decouple it from ext/session. In doing this we will allow you to run multiple sessions at the same time in an application, utilize sessions in long-running applications, compatibility/convertibility with other applications, languages, etc.

With decoupling ext/session we will also provide a compatibility layer that will allow you to continue to utilize ext/session and the super global $_SESSION thus allowing you to continue with like behavior as you would have come to expect with generic session management in PHP.

In Zend Framework 2 (ZF2), we encountered numerous issues throughout the session management layer. Certain compatibility issues with ext/session specifically relating to session uploads. Session uploads caused corruption to the internal handing of sessions generally due to it's attempt to rewrite the session data. We also encountered several issues with PHP itself specifically regarding the usage

@mgldev
mgldev / gist:6764556
Last active December 24, 2015 07:29
<?php
class SentenceCorector {
protected $originalSentence = null;
protected $correctedSentance = null;
protected $corrections = 0;
public function corect($sentence) {
@manuelpichler
manuelpichler / ugly_nowdoc.php
Created November 29, 2011 16:03
PHP is such an ugly language
<?php
class MyClass
{
static function myMethod(
$x = <<<'FOO'
Hello
FOO
, $y = <<<'BAR'
PHP_Depend
BAR