Skip to content

Instantly share code, notes, and snippets.

adeslade

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
View keybase.md

Keybase proof

I hereby claim:

  • I am adeslade on github.
  • I am adeslade (https://keybase.io/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": "http://api.adeslade.co.uk",
"description": "Foo is an API that allows you to Baz Bar",
"operations": {
"GetUsers": {
"httpMethod": "GET",
"uri": "/users",
"summary": "Gets a list of users",
@adeslade
adeslade / punycode.py
Created Nov 13, 2012 — forked from bnoordhuis/punycode.py
python punycode encoder and decoder
View punycode.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2011 by Ben Noordhuis <info@bnoordhuis.nl>
#
# 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
adeslade / index.php
Created Aug 15, 2011
Implementing Twitter sign-in with Silex and PHP
View index.php
<?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
adeslade / constructor_test.php
Created Feb 1, 2011
This works in PHP 5.2 but not in PHP 5.3 :(
View constructor_test.php
<?php
ini_set('display_errors', 1);
class A
{
function A()
{
echo "A constructor called\n";
}
}
View DateFuTest.php
<?php
/*
phpunit DateFuTest.php
*/
error_reporting(E_ALL);
require 'PHPUnit/Autoload.php';
You can’t perform that action at this time.