Skip to content

Instantly share code, notes, and snippets.

View tobyink's full-sized avatar
🦈
hi

Toby Inkster tobyink

🦈
hi
View GitHub Profile
@tobyink
tobyink / .pl
Last active August 4, 2023 14:47 — forked from ology/.pl
Benchmark any vs grep
#!/usr/bin/env perl
use strict;
use warnings;
use Benchmark;
use List::Util 'any';
use match::simple::XS;
use match::simple qw(match);
my $count = shift || 2_000_000;
# This is the old way to do it.
use v5.10;
use strict;
use warnings;
use Test::More;
use Test::Fatal;
use Types::Standard -all;
use Type::Params -all;
@tobyink
tobyink / 00-http.html
Created November 17, 2010 10:12 — forked from mamund/00-http.html
Describing HTTP Requests and Reponses in RDFa
<html
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:http="http://www.w3.org/2006/http#"
xmlns:cnt="http://www.w3.org/2008/content#">
<head>
<title>Example of HTTP in RDFa</title>
<style type="text/css">
div[typeof="http:Request"]
{
border: 1px solid black;