Skip to content

Instantly share code, notes, and snippets.

View Tylos's full-sized avatar
💭
I may be slow to respond.

Jorge Rodriguez Tylos

💭
I may be slow to respond.
View GitHub Profile
@Tylos
Tylos / 0_reuse_code.js
Last active August 29, 2015 14:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Tylos
Tylos / Map Range
Last active August 29, 2015 14:17
Maps value which is in the range fromLow and fromHigh to it's corresponding value in the range toLow, toHigh
private float mapRange(float value, float fromLow, float fromHigh, float toLow, float toHigh) {
return toLow + (((value - fromLow) / (fromHigh - fromLow)) * (toHigh - toLow));
}