Skip to content

Instantly share code, notes, and snippets.

View jabczyk's full-sized avatar

Michał jabczyk

View GitHub Profile
@jabczyk
jabczyk / uws-server.ts
Created October 14, 2021 09:51
Tiny wrapper for uWebSockets.js
import {
App,
TemplatedApp,
WebSocket,
WebSocketBehavior,
SHARED_COMPRESSOR,
// eslint-disable-next-line camelcase
us_listen_socket_close
} from 'uWebSockets.js'
import { v4 as uuidv4 } from 'uuid'
@jabczyk
jabczyk / service.js
Created February 14, 2020 16:52
/r/shittyprogramming challenge: add a new line after the end of each sentence, the shittiest way possible
/* this is a paragraph parser service class */
class ParagraphParserService {
constructor () {
this.n = `
`
this.line = `
`
}
addNewLineAfterSentence ({ paragraphOfText }) {
@jabczyk
jabczyk / knick-knack-bot.js
Last active July 6, 2021 15:45
Consumes all knick-knacks in Your steam inventory
/**
* Knick Knack Steam Bot
*
* Consumes all knick-knacks in Your steam inventory
*
* - Go to https://steamcommunity.com/my/inventory#753_6
* - Wait for inventory to load
* - Press F12
* - Paste the code in console tab
*