Skip to content

Instantly share code, notes, and snippets.

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

Gilang Ramadhan 0wx

☂️
+ 🌧️ = ☔
View GitHub Profile
@0wx
0wx / keybase.md
Created September 12, 2019 07:29

Keybase proof

I hereby claim:

  • I am awotism on github.
  • I am awotism (https://keybase.io/awotism) on keybase.
  • I have a public key ASBv4kxjMS3eLjSpyRC8wmuNAZGzcS5eysoTumdYVsXR_wo

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;

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:

{
"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 00wx (https://keybase.io/00wx) on keybase.
  • I have a public key ASAYdT-qQd6WuK7DOkiOShbGa6af-WWgmhqS7pi5XRMRGAo

To claim this, I am signing this object:

@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"
//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)
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) => ({
console.log('1234')
(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')
})