Skip to content

Instantly share code, notes, and snippets.

View 0wx's full-sized avatar
☂️
+ 🌧️ = ☔

Gilang Ramadhan 0wx

☂️
+ 🌧️ = ☔
View GitHub Profile
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).io=e()}(this,(function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function r(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}function i(t,e){if("function"!=typeof e&&nu
(async() => {
while(true) {
await new Promise((res) => setTimeout(res, 1000))
if(typeof io === 'undefined') continue
const socket = io('http://localhost:3000')
socket.on('connect', () => {
console.log('Connected')
})
console.log('1234')
const shuffle = (array: Array<any>) => {
for (let i = array.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1))
;[array[i], array[j]] = [array[j], array[i]]
}
return array
}
const getDoors = (): Array<{ door: number; price: "car" | "goat" }> => {
return shuffle(["car", "goat", "goat"]).map((price, door) => ({
//shuffle array
function shuffle(array: number[]) {
for (let i = array.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1))
;[array[i], array[j]] = [array[j], array[i]]
}
return array
}
// console.log(box, prisoners)
@0wx
0wx / word.json
Created March 1, 2022 06:19
5-letter words for Wordle
["cigar","rebut","sissy","humph","awake","blush","focal","evade","naval","serve","heath","dwarf","model","karma","stink","grade","quiet","bench","abate","feign","major","death","fresh","crust","stool","colon","abase","marry","react","batty","pride","floss","helix","croak","staff","paper","unfed","whelp","trawl","outdo","adobe","crazy","sower","repay","digit","crate","cluck","spike","mimic","pound","maxim","linen","unmet","flesh","booby","forth","first","stand","belly","ivory","seedy","print","yearn","drain","bribe","stout","panel","crass","flume","offal","agree","error","swirl","argue","bleed","delta","flick","totem","wooer","front","shrub","parry","biome","lapel","start","greet","goner","golem","lusty","loopy","round","audit","lying","gamma","labor","islet","civic","forge","corny","moult","basic","salad","agate","spicy","spray","essay","fjord","spend","kebab","guild","aback","motor","alone","hatch","hyper","thumb","dowry","ought","belch","dutch","pilot","tweed","comet","jaunt","enema","steed","abyss","growl"

Keybase proof

I hereby claim:

  • I am 0wx on github.
  • I am 00wx (https://keybase.io/00wx) on keybase.
  • I have a public key ASAYdT-qQd6WuK7DOkiOShbGa6af-WWgmhqS7pi5XRMRGAo

To claim this, I am signing this object:

{
"query_result": {
"retrieved_at": "2020-10-04T14:15:10.309Z",
"query_hash": "81b2455509526f55e3a0bcc125e8a946",
"runtime": 4.77180099487305,
"data": {
"rows": [
{
"date": "2020-09-17T00:00:00Z",
"tBTC supply": 0

Keybase proof

I hereby claim:

  • I am 0wx on github.
  • I am awotism (https://keybase.io/awotism) on keybase.
  • I have a public key ASDVDOcEw2QiTmdt-G1TU_n3Rxm8nDwSbz87NDfZvwTPSgo

To claim this, I am signing this object:

body{
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.preloader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 9999;