Skip to content

Instantly share code, notes, and snippets.

@alrra
alrra / index.html
Last active August 29, 2015 14:02
Feature detection test for the Proximity API
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<title>Feature detection test for the Proximity API</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.no-js .content,
.feature .no,
.no-feature .yes,
@alrra
alrra / index.html
Created September 28, 2013 13:08
Feature detection test for the Web Speech Synthesis API
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<title>Feature detection test for the Web Speech Synthesis API</title>
<style>
.no-js .content,
.feature .no,
.no-feature .yes,
.no-feature .example {
@alrra
alrra / zopfli.sh
Last active April 12, 2016 08:09
Simple shell script to demonstrate the difference in compression ratio and compression speed between Gzip and Zopfli with different settings.
#!/bin/bash
# Zopfli information and source:
# https://code.google.com/p/zopfli/
# Usage:
# ./zopfli.sh [URL] [file] ...
declare dateCmd=""
declare -a zopfliIterationValues=( "1" "5" "10" "20" "50" "100" "500" "1000" )
@alrra
alrra / index.html
Created September 25, 2012 21:23
Feature detection test for the Web Speech Recognition API
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<title>Feature detection test for the Speech Recognition JavaScript API</title>
<style>
.no-js .content,
.feature .no,
.no-feature .yes,
.no-feature .example {
@alrra
alrra / index.html
Created May 20, 2012 00:40
Feature detection test for insertAdjacentHTML
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<title>Feature detection test for insertAdjacentHTML</title>
<style>
.no-js .content,
.feature .no,
.no-feature .yes {
display: none;
@alrra
alrra / index.html
Created April 30, 2012 13:46
Feature detection test for <style scoped>
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<title>Feature detection test for &lt;style scoped&gt;</title>
<style>
.no-js .content,
.feature .no,
.no-feature .yes {
display: none;
@alrra
alrra / index.html
Created April 30, 2012 13:45
Feature detection test for the HTML5 <ruby>, <rt> and <rp> elements
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<title>Feature detection test for the HTML5 &lt;ruby&gt;, &lt;rt&gt; and &lt;rp&gt; elements</title>
<style>
.no-js .content,
.feature .no,
.no-feature .yes {
display: none;