Skip to content

Instantly share code, notes, and snippets.

View jecsham's full-sized avatar
🎯
Focusing

Jecsham jecsham

🎯
Focusing
View GitHub Profile
@jecsham
jecsham / debugger.css
Created September 13, 2019 19:03
Debugger CSS - This styles allow you to see exactly the used espace of an element in the DOM, without adding pixels.
/**
* Debugger CSS
* This styles allow you to see exactly the used espace of an element in the DOM, without adding pixels.
* Debug HTML elements adding the _d class.
* @author Jecsham Castillo
*/
._d {
-webkit-box-shadow: inset 0px 0px 0px 2px rgba(255,0,0,1);
-moz-box-shadow: inset 0px 0px 0px 2px rgba(255,0,0,1);
class Fibonacci {
/**
* @param {number} value
* @returns {number}
*/
sequence (value) {
return (value < 2) ? value : this.sequence(value - 1) + this.sequence(value - 2)
}
/**
/**
* This is a port from java to ts
* Original: https://github.com/HypixelDev/PublicAPI/blob/master/Java/src/main/java/net/hypixel/api/util/ILeveling.java
*/
export class Leveling {
static readonly EXP_FIELD: string = "networkExp";
static readonly LVL_FIELD: string = "networkLevel";
@jecsham
jecsham / cloudSettings
Last active December 9, 2020 00:39
Settings Sync for code
{"lastUpload":"2020-12-09T00:39:55.000Z","extensionVersion":"v3.4.3"}