Skip to content

Instantly share code, notes, and snippets.

@rohhhs
rohhhs / soundgen
Created April 20, 2024 15:53
Another unsuccessful shot
import numpy as np
import soundfile as sf
# distribute the frequencies according patterns
# value in array means how much times the value will be duplicated
# every next value takes previous value and adds or removes 5 Hz from previous one
# Sample rate and duration of the sound
sample_rate = 44100 # Sample rate in Hz (e.g., CD quality)
duration = 10.0 # Duration of the sound in seconds
@rohhhs
rohhhs / gist:040705d29eee7431e2ea2cfdc3b24eac
Created April 24, 2024 17:59
Heading Resizing for some clarity
function resizeHeading(elementId) {
const textLength = element.innerText.length;
// get font size of element
let fontSize = window.getComputedStyle(element).fontSize;
// remove 'px' from string
fontSize = parseInt(fontSize.slice(0, -2));
// set up max symbols
const minSymbols = 1;
const maxSymbols = 421;
1.07^600 somehow 4.268414741×10¹⁷ then 1.07 ^ 120 is 3357.78838289 times, so why the socium telling that asm to c is 1.07 and c to python is 1 to 600 and how to make things work without actual strict code convertion precision even in best notificated sociale criterium ~3357 times is a lot of wasted energy for society.
i mean move a stuck of a symbol in processor can be 400 000 000 000 symbols per second for MOV function, and the database in 24mb is moving for ~1 second in python strict characters nor image convertad and cryptographed symbols, so 4ghz should move in speed 4b per second so 24305568 in 1 processing second (4000000000000 symbols) 164571 times then it should be moved in ~0.006 of ms but was moved 782 ms so 130333 times more not accurate, so why!?
4.268414741×10¹⁷ and 3357 is the socium precisions and the actual first-repeatable-try (because actual first was around 5-6 seconds and the several next with gc turned off 1 second surplus) not the same as 130333 times slowler, then 1.07 ^ 140 more precis