Skip to content

Instantly share code, notes, and snippets.

@dciccale
dciccale / insertAfter
Created April 27, 2011 18:47
JavaScript insertAfter function
// JavaScript function to insert a node after another node
function insertAfter(node, nodeToInsert) {
node.parentNode.insertBefore(nodeToInsert, node.nextSibling);
}
@dciccale
dciccale / reset.css
Created May 18, 2011 13:09
One-line CSS Reset
*{margin:0;padding:0;outline:0;font-size:1em;font-weight:normal;font-style:normal;border:0;text-decoration:none;list-style-type:none}
@dciccale
dciccale / LICENSE.txt
Created July 31, 2011 09:30 — forked from 140bytes/LICENSE.txt
Detect if Flash Player is installed in your browser (120bytes)
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Denis Ciccale <http://webdecs.wordpress.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@dciccale
dciccale / LICENSE.txt
Created August 2, 2011 00:00 — forked from 140bytes/LICENSE.txt
FormValidator.js - Form validation in 114 bytes of JavaScript
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Denis Ciccale <http://webdecs.wordpress.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@dciccale
dciccale / NOTE.txt
Created August 6, 2011 19:42
Extend jQuery form selectors expressions with HTML5 input types
** IMPORTANT **
This will only work on modern browsers that supports these new input types, if not they will be treated as "text" types.
@dciccale
dciccale / anotated.js
Created August 31, 2011 09:37
Detect if Flash Player is installed in your browser and get its version (180bytes)
function(a, b) {
try {
b = new ActiveXObject(a+b+'.'+a+b).GetVariable('$version')
} catch (e) {
b = navigator.plugins[a+' '+b];
b = b ? b.description : "";
}
return b.match(/\d+/)[0];
@dciccale
dciccale / demo.html
Last active January 22, 2021 10:40
Styling radios & checkboxes using CSS3 (only for webkit)
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Styling radios &amp; checkboxes using CSS3</title>
<link rel="stylesheet" media="screen" href="styles.css" >
</head>
<body>
<h1>Styling radios &amp; checkboxes using CSS3</h1>
@dciccale
dciccale / html5ie.js
Created December 23, 2011 14:50
HTML5 tag support for IE<9 in 222 bytes
for(var a="abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video".split(" "),b=a.length;b--;)document.createElement(a[b])
@dciccale
dciccale / README.md
Last active September 29, 2015 19:27
jQuery xxspubsub in 111 bytes gzipped inspired by @cowboy's Tiny Pub/Sub

jQuery XXSPubSub

jQuery pub/sub in 111 bytes gzipped inspired by @cowboy's Tiny Pub/Sub

@dciccale
dciccale / web-app.html
Created November 6, 2012 17:28 — forked from tfausak/ios-8-web-app.html
iOS web app icons & startup images
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="yes" name="apple-mobile-web-app-capable">
<title></title>
<!-- iPhone -->
<link href="http://taylor.fausak.me/static/images/apple-touch-icon-57x57.png"