Skip to content

Instantly share code, notes, and snippets.

View joeconradt's full-sized avatar

Joe Conradt joeconradt

View GitHub Profile
@geoffb
geoffb / simple-canvas-rotation.html
Last active February 23, 2023 20:56
A simple example of rotating a rectangle using HTML5 canvas.
<!DOCTYPE html>
<html>
<head>
<title>HTML5 Canvas Transformation</title>
</head>
<body>
<script>
// Create our canvas and append it to the document body
var stage = document.createElement("canvas");
@jmikola
jmikola / AggregatedTaggedServicesPass.php
Created January 18, 2011 20:35
Retrieving tagged services after the Symfony2 DIC has already been compiled
<?php
namespace OpenSky\Bundle\MainBundle\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
class AggregatedTaggedServicesPass implements CompilerPassInterface
{