Skip to content

Instantly share code, notes, and snippets.

@paulobarcelos
Created November 18, 2014 18:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulobarcelos/5d9d8c2859f85fc5749a to your computer and use it in GitHub Desktop.
Save paulobarcelos/5d9d8c2859f85fc5749a to your computer and use it in GitHub Desktop.
eu sou sou hacker
var sync = function(){console.log('sync')}
var leftPage = false
var t = 0;
var c = function(){
if((Date.now()-t) > 500){
leftPage=true
}
else if(leftPage){
leftPage=false; sync()
};
t = Date.now();
setTimeout(c, 100)
}
c();
@murilopolese
Copy link

Ai é hacker hein?

@paulobarcelos
Copy link
Author

puro ráki

@murilopolese
Copy link

rackudo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment