Skip to content

Instantly share code, notes, and snippets.

@PeeHaa
PeeHaa / routing-pitchblade.php
Last active August 29, 2015 14:00
Routing example PitchBlade
<?php
use PitchBlade\Storage\ImmutableArray;
use PitchBlade\Network\Http\Request;
use PitchBlade\Router\Path\SegmentFactory;
use PitchBlade\Router\Path\Factory as PathFactory;
use PitchBlade\Router\Route\Factory as RouteFactory;
use PitchBlade\Router\Router;
use PitchBlade\Router\NotFoundException;
use PitchBlade\Router\Route\AccessPoint;
<?php
echo "'$2a$08$KHiiru4yzYh141GUh2xIMew//bCc7rxMuY1rtDApwA66/czIiurLi'";
<?php
$song = new StdClass;
$song->artist = '" onmouseover="alert(\'all your base are belong to us\')" foo="';
?>
<form action="#">
<input type="text" name="xss" value="<?php if (isset($song->artist)) echo $song->artist; ?>">
</form>
@PeeHaa
PeeHaa / gist:3e7015617ee8cc32569d
Created April 1, 2015 12:01
ipv6 handling opcachegui
<?php
class IPv6Address
{
/**
* @var int[]
*/
private $words;
/**
@PeeHaa
PeeHaa / package.json
Created March 26, 2012 10:54
Example of a package.json file for jquery plugins
{
"name": "jquery.griphandler",
"version": "0.10.0",
"title": "jQuery.gripHandler()",
"author": {
"name": "Pieter Hordijk",
"url": "https://github.com/PeeHaa"
},
"licenses": [
{
@PeeHaa
PeeHaa / frameworks-sigh.md
Created May 7, 2012 22:27
Frameworks are bad m'kay

This document will be a reminder why most (/ almost all) frameworks out there just suck monkey balls.

Let's just make a nice list of all the really bad stuff that is happening in the popular frameworks.
And maybe publish it just to give people the shivers.

CodeIgniter

[Are we evaling now][2]?

@PeeHaa
PeeHaa / protocol.md
Created May 14, 2012 22:15
DarkerNetFilesharing Protocol

DarkerNetFilesharing Protocol

Intro

This document describes how the DarkerNetFilesharing protocol should be implemented.

This document is a draft and anything (including implementation details) are subject to change.

@PeeHaa
PeeHaa / reference-so-questions.md
Created June 28, 2012 08:26
Canonical questions for the dupes helper (cv-pls plugin)
@PeeHaa
PeeHaa / php.net.fixs.md
Created July 5, 2012 19:04
php docs (needs fixing)
@PeeHaa
PeeHaa / blog.md
Created July 9, 2012 12:53
Blogging software

Blogging system

I hate myself for reinventing the wheel, but I like building stuff myself ;-)

Comments

It should be possible to save and retrieve comments using different storage mechanisms: