Skip to content

Instantly share code, notes, and snippets.

View iliadraznin's full-sized avatar

Ilia iliadraznin

View GitHub Profile
@iliadraznin
iliadraznin / istype.js
Created June 8, 2013 15:28
Simple function to detect type Array. JavaScript return type "object" whether you give it an actual object like { red:44, green:57, blue:220 }, or an array like [44, 57, 220]. So I wrote this small function to separate the two.
function istype(obj) {
return (typeof obj !== 'object' || typeof obj[0] === 'undefined')
? typeof obj
: 'array';
}
@iliadraznin
iliadraznin / index.html
Created February 9, 2013 03:45
A CodePen by Ilia. CSS3 Working Analog Clock - Working CSS3 analog clock, using CSS animations and shapes, without any images or JavaScript.
<div id="watch">
<div class="frame-face"></div>
<ul class="minute-marks">
<li></li><li></li><li></li><li></li><li></li><li></li>
<li></li><li></li><li></li><li></li><li></li><li></li>
<li></li><li></li><li></li><li></li><li></li><li></li>
<li></li><li></li><li></li><li></li><li></li><li></li>
<li></li><li></li><li></li><li></li><li></li><li></li>
<li></li><li></li><li></li><li></li><li></li><li></li>
<li></li><li></li><li></li><li></li><li></li><li></li>