Skip to content

Instantly share code, notes, and snippets.

@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
@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