Skip to content

Instantly share code, notes, and snippets.

View szympajka's full-sized avatar

Szymon Pajka szympajka

View GitHub Profile
@szympajka
szympajka / inspired_by_the_way_words_transit_meaning.md
Created April 11, 2026 11:54
Inspired by the way words transit meaning

“How can we go back to being friends when we just shared a bed?”

This lyric sung by sombr is a fantastic example of how a sentence can burst with meaning. This subtle wordplay encodes tangled truths and seductive exchanges of one’s private life.

Me, looking at it from the fascination point of view, I see this as a beautiful example of information compression. I am right in thinking that way, though not in the classical sense.

The problem is that this isn’t a lossless compression. It’s quite the opposite, actually. We don’t know what actually happened. There is an infinite number of scenarios that fit the compressed output.

What it tells us is that we can use such a compression technique to encode a theme rather than specific values; it isn’t giving you the facts of what happened, but a vibe that is identifiable even without the details.

@szympajka
szympajka / undo-github-viewed-files.js
Created March 7, 2025 12:07
Undo viewed files on Github PR
for (let k of [...document.querySelectorAll('#files form[action*="file_review"] label[class*="js-reviewed-file"')]) {
k.click();
await new Promise(resolve => setTimeout(resolve, 200))
}
import { createComponent, styled } from 'snabbdom-react-components'
const Box = styled.div``
const Label = styled.label``
const InputField = styled.input`
${(props, data) => {
data.attrs.type = 'text'
}}
`
@szympajka
szympajka / snabbdom-input-test.js
Created February 4, 2019 21:40
Snabbdom input test
// ####### Declarations ##########
import h from '/vendors/snabbdom/h.js'
import { defaultsDeep, merge } from '/vendors/lodash/lodash.js'
// ####### Defaults ##########
const defaultParams = {
name: '',
value: '',
label: '',
placeholder: '',
@szympajka
szympajka / index.html
Created March 9, 2017 00:19 — forked from anonymous/index.html
Turn waves on/off without javascript
<div class="music">
<label for="play"></label>
<input id="play" type="checkbox" />
<div class="waves">
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
</div>