Skip to content

Instantly share code, notes, and snippets.

@ploosh-alt
ploosh-alt / binary.js
Last active May 11, 2022 16:39
binary function in js
b=(i)=>{let n=i<0,s="",d=(n?(-i):i)/2,p;for(;d>0.49;d/=2){p=parseInt(d);s+=d==p?"0":"1";d=p};return(n?"-":"")+"0b"+s.split("").reverse().join("")}
{"latest": {"release": "1.18.1", "snapshot": "1.18.1"}, "versions": [{"id": "1.18.1", "type": "release", "url": "https:https://unblocker.daguacaplushy.repl.co/?url=https://launchermeta.mojang.com/v1/packages/b0bdc637e4c4cbf0501500cbaad5a757b04848ed/1.18.1.json", "time": "2021-12-10T08:26:34+00:00", "releaseTime": "2021-12-10T08:23:00+00:00"}, {"id": "1.18.1-rc3", "type": "snapshot", "url": "https:https://unblocker.daguacaplushy.repl.co/?url=https://launchermeta.mojang.com/v1/packages/e93a50674f603440dfc24a96c5e2c0f379231e57/1.18.1-rc3.json", "time": "2021-12-10T08:14:51+00:00", "releaseTime": "2021-12-10T03:36:38+00:00"}, {"id": "1.18.1-rc2", "type": "snapshot", "url": "https:https://unblocker.daguacaplushy.repl.co/?url=https://launchermeta.mojang.com/v1/packages/a22e46bd382874572e3aef9ea4e0fec81e1a8629/1.18.1-rc2.json", "time": "2021-12-10T08:14:51+00:00", "releaseTime": "2021-12-08T12:29:36+00:00"}, {"id": "1.18.1-rc1", "type": "snapshot", "url": "https:https://unblocker.daguacaplushy.repl.co/?url=https://l