Skip to content

Instantly share code, notes, and snippets.

View domjancik's full-sized avatar

Dominik Jančík domjancik

View GitHub Profile
@domjancik
domjancik / mega_cloud_files_modified_time_filter.py
Created April 8, 2023 17:09
Filter for files in MEGA cloud storage modified between a specific time range using Python
import base64
import datetime
from mega import Mega
# Initiate MEGA client
mega = Mega()
# Login to MEGA. Make sure not to share your credentials, eg. in Github. For instance use env variables or a secrets manager.
EMAIL = ""
@domjancik
domjancik / creepy_healing_sonic_pi.rb
Last active October 10, 2021 21:02
Sonic Pi 4 Creepy Healing / 211010domj
# Creepy healing / 211010domj
# src: https://mindisthemaster.com/sound-frequency-healing-human-body-benefits/
HEALING_FREQS = [
40, # Flickering lights and sounds at 40 hertz have been used in Alzheimer’s therapy studies to stimulate an increased neural response and fight symptoms of dementia. Sound at 40 hertz has been linked to gamma brain waves and the stimulation of memory.
174, # 174 hertz is one of the Solfeggio frequencies, a series of tones used in sacred music that is believed in alternative medicine to have different positive effects on human health. 174 hertz is associated with the reduction of both pain and stress.
285, # 285 hertz is also one of the Solfeggio frequencies and is considered instrumental in the healing of cuts, burns, and other physical wounds. 285 hertz sound frequencies are supposed to activate the body into cellular regeneration, encouraging it to heal itself in the event of an injury.
396, # This sound frequency is associated with the removal of fear and other negative
@domjancik
domjancik / fp-ts-key-sorting.ts
Last active March 15, 2021 15:15
fp-ts ordering by object keys with localeCompare
import * as A from 'fp-ts/Array'
import * as R from 'fp-ts/Record'
import { pipe } from 'fp-ts/function'
import { contramap, Ord, clamp, ordNumber } from 'fp-ts/Ord'
import { Ordering } from 'fp-ts/Ordering'
import { fst } from 'fp-ts/Tuple'
const o: { [key: string]: string } = {
"a-tag": "stuff",
"c-tag": "even more stuff",
@domjancik
domjancik / test.py
Created March 9, 2021 13:05
Mock a single function boto3 / moto
# Useful for filling in unimplemented moto https://github.com/spulec/moto functions for instance
import botocore.client
original_api_call = botocore.client.BaseClient._make_api_call
def mock_api_call(self, operation_name, api_params):
if operation_name == 'ListAliases':
return {
"Aliases": []
}
[Feature] Project selection
And refactorings and possibly other stuff. It's been a while since I touched this and there is still no VL diff tool.
[Blocks] Modify.Value.Cooldown and RunningMap
VVVV Teensy output module
VVVV Audio analysis VVVV module
Minimal Schema Runtime
Various dev utilities
[Sketches] SceniCubes
[Plugins][EnttecDMXUSBProOutput] Document version bump
[Plugins][RemoteController] Master input