Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block adeslade

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am adeslade on github.
  • I am adeslade ( on keybase.
  • I have a public key ASBGNov0Nk2TiDrmOMjpn2xTKGc4EVwpq5cLfKQqbiFgBgo

To claim this, I am signing this object:

View service.json
"name": "Foo",
"apiVersion": "2012-10-14",
"baseUrl": "",
"description": "Foo is an API that allows you to Baz Bar",
"operations": {
"GetUsers": {
"httpMethod": "GET",
"uri": "/users",
"summary": "Gets a list of users",
adeslade /
Created Nov 13, 2012 — forked from bnoordhuis/
python punycode encoder and decoder
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2011 by Ben Noordhuis <>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
adeslade / index.php
Created Aug 15, 2011
Implementing Twitter sign-in with Silex and PHP
View index.php
define('CONS_KEY', 'Application consumer key');
define('CONS_SECRET', 'Application consumer secret');
require_once __DIR__.'/silex.phar';
$app = new Silex\Application();
// register the session extension
$app->register(new Silex\Extension\SessionExtension());
adeslade / constructor_test.php
Created Feb 1, 2011
This works in PHP 5.2 but not in PHP 5.3 :(
View constructor_test.php
ini_set('display_errors', 1);
class A
function A()
echo "A constructor called\n";
View DateFuTest.php
phpunit DateFuTest.php
require 'PHPUnit/Autoload.php';
You can’t perform that action at this time.