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 April 7, 2026 03:06
Expo Config Plugin to disable forced Dark mode.
// disable forced dark mode to prevent weird color changes
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { createRunOncePlugin, withAndroidStyles, AndroidConfig } = require('expo/config-plugins')
function setForceDarkModeToFalse(styles) {
const newStyles = AndroidConfig.Styles.assignStylesValue(styles, {
add: true,
// ############# FOLLOW IF YOU'RE ON SDK 52 #############
// TODO: AndroidConfig.Styles.getAppThemeGroup() will be available in SDK 52 (or expo/config-plugins 9+), for now I just hardcoded AppTheme
// parent: AndroidConfig.Styles.getAppThemeGroup(),
@gielcobben
gielcobben / optimise-images-terminal.md
Last active September 23, 2024 08:13
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.
*