Skip to content

Instantly share code, notes, and snippets.

View saundefined's full-sized avatar
🕊️
🙌

Sergey Panteleev saundefined

🕊️
🙌
View GitHub Profile
@hirbod
hirbod / withDisableForcedDarkModeAndroid.js
Last active May 15, 2024 00:00
Expo Config Plugin to disable forced Dark mode.
// disable forced dark mode to prevent weird color changes on
// certain android devices (Xiaomi MIUI and others enforcing dark mode with view analyzing)
// create a file like "plugins/withDisableForcedDarkModeAndroid.js". Insert this content and edit your app.config.js/app.json
/*
"expo": {
...
...
...
"plugins": [
@gielcobben
gielcobben / optimise-images-terminal.md
Last active April 16, 2024 23:38
Optimise your pngs from the terminal in OSX

JPG:
$ brew install jpegoptim
$ find . -name "*.jpg" -exec jpegoptim -m80 -o -p --strip-all {} \;

- PNG:
$ brew install optipng
$ find . -name "*.png" -exec optipng -o7 {} \;

@davekobrenski
davekobrenski / frequencies.php
Last active March 3, 2023 17:33
PHP Array of Musical Frequencies
<?php
/**
* Musical Notes to Frequency Table
*
* This array contains all of the notes on a piano with their
* corresponding frequencies. The array is organized into octaves
* making it easy to loop through and output, for example, an html chart
* of notes and frequencies.
*