Skip to content

Instantly share code, notes, and snippets.

View rzorzal's full-sized avatar
🏠
Working from home

Ricardo Zorzal Davila rzorzal

🏠
Working from home
  • Espírito Santo - Brasil
View GitHub Profile
@rzorzal
rzorzal / Vector3d.js
Created August 11, 2021 14:41
A implementation ofVector3d in Javascript
class Vector3d {
static toDegrees(radians){
return (radians * 180) / Math.PI;
}
static toRadian(degrees){
return (degress * Math.PI) / 180;
}
static create(x,y,z){
let timeOutId;
$('#teste').on('keyup', (evt) => {
if(timeOutId){
clearTimeout(timeOutId);
}
timeOutId = setTimeout( () => {
//executa seu script
}, 300)//tempo de espera em milisec
})
@rzorzal
rzorzal / snnimpetcore.cson
Created October 10, 2017 00:28
snnimpetcore.cson
'.text.html.basic':
'Core Component':
'prefix': 'ccomponent'
'body': """<component name="$1">
<imports>
</imports>
<template>
</template>