Skip to content

Instantly share code, notes, and snippets.

View netgfx's full-sized avatar
💻
Working...

Michael Dobekidis netgfx

💻
Working...
View GitHub Profile
@netgfx
netgfx / index.html
Created March 11, 2013 08:25
A CodePen by Michael Dobekidis. Globe SVG animation - The world map with SVG injection, animation and drag&drop with JQueryUI.
<div id='mainBG'>
</div>
<div id="mainBox">
</div>
@netgfx
netgfx / rAF.js
Created March 13, 2013 09:38 — forked from paulirish/rAF.js
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller
// fixes from Paul Irish and Tino Zijdel
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {
@netgfx
netgfx / index.html
Created July 3, 2013 09:19
A CodePen by Michael Dobekidis. CSS Color Names - All the available color names of CSS. view on github here: https://github.com/netgfx/ColorMyName
<div>
<div class="container">
<div class="alert alert-info">
<strong>All CCS Color Names!</strong> Pick a color OR type something...
</div>
@netgfx
netgfx / index.html
Created October 23, 2013 16:07
A Pen by Michael Dobekidis.
<div id='canvas'></div>
@netgfx
netgfx / randomRange
Created December 22, 2013 17:19
random number from max-min
/**
* getRandom * Description
* @param {type} max* Description
* @param {type} min* Description
**/
function getRandom(min, max) {
return Math.floor(Math.random() * (max - min + 1) + min);
}
@netgfx
netgfx / gist:8339985
Created January 9, 2014 19:06
RequestAnimationFrame
/**
* Provides requestAnimationFrame in a cross browser way.
* @author paulirish / http://paulirish.com/
*/
if ( !window.requestAnimationFrame ) {
window.requestAnimationFrame = ( function() {
return window.webkitRequestAnimationFrame ||
@netgfx
netgfx / gist:8641220
Last active January 4, 2016 15:29
Load Multiple Images with callbacks
/**
* [loadAssets description]
* @param {[type]} assets [description]
* @return {[type]} [description]
*/
function loadAssets(assets, fn, onFinish) {
var promises = [];
for (var i = 0; i < assets.length; i++) {
@netgfx
netgfx / Canvas-map-path-[animated].markdown
Created January 30, 2014 10:21
A Pen by Michael Dobekidis.
@netgfx
netgfx / gist:8812569
Last active August 29, 2015 13:56
Random color
function get_random_color() {
var letters = '0123456789ABCDEF'.split('');
var color = '#';
for (var i = 0; i < 6; i++ ) {
color += letters[Math.round(Math.random() * 15)];
}
return color;
}
(function (root, factory) {