Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Jecsham jecsham

🎯
Focusing
View GitHub Profile
View hypixel-leveling-util.ts
/**
* 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";
View fibonacci.ts
class Fibonacci {
/**
* @param {number} value
* @returns {number}
*/
sequence (value) {
return (value < 2) ? value : this.sequence(value - 1) + this.sequence(value - 2)
}
/**
@jecsham
jecsham / debugger.css
Created Sep 13, 2019
Debugger CSS - This styles allow you to see exactly the used espace of an element in the DOM, without adding pixels.
View debugger.css
/**
* 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);
@jecsham
jecsham / cloudSettings
Last active Dec 9, 2020
Settings Sync for code
View cloudSettings
{"lastUpload":"2020-12-09T00:39:55.000Z","extensionVersion":"v3.4.3"}