Skip to content

Instantly share code, notes, and snippets.

View vagnervjs's full-sized avatar

Vagner Santana vagnervjs

View GitHub Profile

Keybase proof

I hereby claim:

  • I am vagnervjs on github.
  • I am vagnervjs (https://keybase.io/vagnervjs) on keybase.
  • I have a public key ASCugUCNUnxhN_xa9DXCXtc_GEZGZ0Yd5Zv3hO98ZiPxkgo

To claim this, I am signing this object:

Verifying that +vagnervjs is my blockchain ID. https://onename.com/vagnervjs
FramePlayer.prototype.render = function(player) {
var now,
then = Date.now(),
interval = 1000/player.rate,
delta,
videoFramesNum = player.jsonVideoFile.frames.length;
var _self = this;
@vagnervjs
vagnervjs / .editorconfig
Last active August 29, 2015 14:18
Code Style config files
# editorconfig.org
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.js]
@vagnervjs
vagnervjs / loader.js
Last active August 29, 2015 14:06
Load async scripts using vanilla js
var loader = (function() {
'use strict';
var loader = {
XMLHttpFactories: [
function () {return new XMLHttpRequest(); },
function () {return new ActiveXObject("Msxml2.XMLHTTP"); },
function () {return new ActiveXObject("Msxml3.XMLHTTP"); },
function () {return new ActiveXObject("Microsoft.XMLHTTP"); }
],