Skip to content

Instantly share code, notes, and snippets.

@dciccale
dciccale / README.md
Last active December 11, 2015 08:18
hasOwnProperty shim in 115 bytes (counting only the actual function)

hasOwnProperty shim

Cross-browser hasOwnProperty shim in 115 bytes of JavaScript.

.vimrc.json

A demo to see how it would be to have a .vimrc with json syntax.

@dciccale
dciccale / README.md
Last active December 9, 2015 17:49
requestAnimationFrame shim in 155 bytes (127 gzipped)

requestAnimationFrame shim

Cross-browser requestAnimationFrame in 155 bytes of JavaScript.

@dciccale
dciccale / README.md
Last active October 22, 2021 21:52
Tiny Cross-browser DOM ready function in 111 bytes of JavaScript

DOM Ready

Tiny Cross-browser DOM ready function in 111 bytes of JavaScript.

@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"
@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 / 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 / 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 / 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 / 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.