Skip to content

Instantly share code, notes, and snippets.

View firstChairCoder's full-sized avatar
🔥
...

Joshua A. firstChairCoder

🔥
...
View GitHub Profile
@firstChairCoder
firstChairCoder / battery-icon.js
Last active June 26, 2024 14:59
Hook files (please place each in a hooks folder under src)
import { useMemo } from "react";
import { View } from "react-native";
import Battery0Icon from "../../assets/images/battery-0-icon.svg";
import Battery25Icon from "../../assets/images/battery-25-icon.svg";
import Battery50Icon from "../../assets/images/battery-50-icon.svg";
import Battery75Icon from "../../assets/images/battery-75-icon.svg";
import Battery100Icon from "../../assets/images/battery-100-icon.svg";
import { COLORS } from "../constants";
@firstChairCoder
firstChairCoder / compress_video
Created August 22, 2024 17:22 — forked from trvswgnr/compress_video
portable shell script to compress videos with ffmpeg
#!/bin/sh
print_usage() {
echo "usage: compress_video <input_file>"
echo "supported formats: mp4, webm, mkv, mov, avi, flv"
}
get_extension() {
f="${1##*/}"
case "$f" in
@firstChairCoder
firstChairCoder / App.tsx
Last active September 18, 2025 16:48
Old movieappx code
**App.tsx**
import "./src/global.css"
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { Text, View } from 'react-native';
function HomeScreen() {
return (
<View className="flex-1 items-center justify-center bg-white">