A list of amazingly awesome PHP libraries, resources and shiny things.
- Composer/Packagist - A package and dependency manager.
- Composer Installers - A multi framework Composer library installer.
A list of amazingly awesome PHP libraries, resources and shiny things.
How do I know if I've won? | |
If you're actually playing the game you'll know straight away. If a friend is playing the game without you being present, you'll find out the next time you log into the game on facebook. | |
How many times can I play the game? | |
You have 2 chances to spin the bottle. That's by either inviting friends to play the game or by having a friend ask you to play. | |
What can I win? | |
Every spin has a winner. The winner will receive a ticket for them and a friend (who must also be over 18) to the Spin the Bottle event at the EDF Energy London Eye on 18th July or a coupon for a free 500ml bottle of Oasis (all flavours). If you have won tickets, you will receive an email confirming your win with a registration form for you and your guest to fill in and return to us at the specified email address within 5 days of your win. If you win a free 500ml bottle of Oasis you will be sent an email containing a link for you to download and print a coupon for redemption at any participating store | |
What happens at t |
How do I know if I've won? | |
If you're actually playing the game you'll know straight away. If a friend is playing the game without you being present, you'll find out the next time you log into the game on facebook. | |
How many times can I play the game? | |
You have 2 chances to spin the bottle. That's by either inviting friends to play the game or by having a friend ask you to play. | |
What can I win? | |
Every spin has a winner. The winner will receive a ticket for them and a friend (who must also be over 18) to the Spin the Bottle event at the EDF Energy London Eye on 18th July or a coupon for a free 500ml bottle of Oasis (all flavours). If you have won tickets, you will receive an email confirming your win with a registration form for you and your guest to fill in and return to us at the specified email address within 5 days of your win. If you win a free 500ml bottle of Oasis you will be sent an email containing a link for you to download and print a coupon for redemption at any participating store | |
What happens at t |
<?php | |
$db = new PDO('mysql:host=localhost;dbname=benchmark', 'root'); | |
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
function benchmark($callback){ | |
$t = time(); | |
for ($i = 0; $i < 10000; $i++) | |
$callback(); | |
return time() - $t; | |
} |
<?php | |
$db = new PDO('mysql:host=localhost;dbname=benchmark', 'root'); | |
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
function benchmark($callback){ | |
$t = time(); | |
for ($i = 0; $i < 10000; $i++) | |
$callback(); | |
return time() - $t; | |
} |
<!DOCTYPE html> | |
<html> | |
<head> | |
<link type="text/css" rel="stylesheet" href="stylesheet.css" /> | |
<title>My Photo Page</title> | |
</head> | |
<body> | |
<table> | |
<thead> | |
</thead> |
draconyster@gmail.com |
Ok here is my idea:
Mock server: Has a factory function which fork()s and then creates a simple socket server on specified port and initializes a pipe and returns information about that pipe
Mock client: Ensures a server is started, gets pipe info and uses that to communicate with the server. When setting up a mocj URL client pushes info through the pipe and the server sets up a coresponding route
from libqtile.config import Key, Screen, Group, Drag, Click | |
from libqtile.command import lazy | |
from libqtile import layout, bar, widget | |
mod = "mod4" | |
keys = [ | |
Key([mod], "h", lazy.layout.left()), | |
Key([mod], "l", lazy.layout.right()), |
# ~/.config/qtile/config.py | |
from libqtile.config import Key, Screen, Group, Drag, Click | |
from libqtile.command import lazy | |
from libqtile import layout, bar, widget | |
mod = "mod4" | |
keys = [ |