Skip to content

Instantly share code, notes, and snippets.

View Jemeni11's full-sized avatar
😴
send help

Emmanuel C. Jemeni Jemeni11

😴
send help
View GitHub Profile
@stenuto
stenuto / hls.sh
Created November 7, 2024 16:58
HLS ffmpeg script
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]"
exit 1
}
# Check if at least one argument (input file) is provided
if [ $# -lt 1 ]; then
@AkinAguda
AkinAguda / ColorSlider.tsx
Last active September 27, 2025 11:04
A gradient color slider in the context of Next.js + Typescript + tailwind
"use client";
import { memo, useState } from "react";
import classes from "./colorSlider.module.css";
import {
GRADIENT,
MAX_RANGE,
RGB,
determineColorFromValue,
@mathix420
mathix420 / medium.user.js
Last active October 31, 2025 12:34
Bypass Medium Paywall - Working late 2023 - Greasy Fork, Violentmonkey, Tampermonkey - Click the RAW button to install
// ==UserScript==
// @name Medium Paywall Bypass
// @namespace Violentmonkey Scripts
// @run-at document-start
// @match *://*.medium.com/*
// @match *://medium.com/*
// @match *://*/*
// @grant none
// @version 2.4
// @inject-into content
@BalogunofAfrica
BalogunofAfrica / list-renderer.tsx
Created March 31, 2023 10:37
Simple API for using FlashList as Scrollview
import { FlashList, FlashListProps } from "@shopify/flash-list";
import React, { forwardRef, ReactElement } from "react";
type ListProps<T> = Omit<FlashListProps<T>, "children"> & { as?: "list" };
type ScrollViewProps<T> = Omit<
FlashListProps<T>,
"children" | "data" | "renderItem"
> & {
as?: "scroll-view";
children: React.ReactNode | React.ReactNode[];
@frankcalise
frankcalise / withReactNativeFirebase.ts
Created December 15, 2022 00:46
Expo Plugin to fix react-native-firebase 16.4.6, you'll also need to EAS build with --clear-cache
// See this recommendation for the native fix
// https://github.com/invertase/react-native-firebase/issues/6725#issuecomment-1342808185
import { ExpoConfig, ConfigContext } from "@expo/config"
import { ConfigPlugin, withDangerousMod } from "expo/config-plugins"
import { mergeContents } from "@expo/config-plugins/build/utils/generateCode"
import * as fs from "fs"
import * as path from "path"
const withReactNativeFirebase: ConfigPlugin = (config) => {
@Jemeni11
Jemeni11 / main.py
Last active May 4, 2022 17:21
Scraping Story Metadata from Fanfiction.net using Selenium and undetected_chromedriver
from bs4 import BeautifulSoup
from time import sleep
from undetected_chromedriver import Chrome
from selenium import webdriver
def fanfictiondotnet(url: str):
try:
print("[INFO]\tStarting Browser")
options = webdriver.ChromeOptions()
# options.add_argument('--headless') # for some reason, undetected_chromedriver doesn't work in headless mode
const useProxyDefault = !API_CONSTANTS.PRODUCTION
const useProxy = Platform.select({ web: false, default: useProxyDefault })
const redirectUri = useProxyDefault
? AuthSession.makeRedirectUri({ useProxy })
: `scheme://yourauth0domain.us.auth0.com/${API_CONSTANTS.OS}/${API_CONSTANTS.BUNDLE_ID}/callback`
// ...
const [request, result, promptAsync] = AuthSession.useAuthRequest(
@import url("https://fonts.googleapis.com/css?family=Roboto+Slab:100,300,400,700");
@import url("https://fonts.googleapis.com/css?family=Raleway:300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i");
* {
margin: 0;
border: 0;
box-sizing: border-box;
}
:root {
@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active September 30, 2025 23:23
A guide to ANSI on Discord

A guide to ANSI on Discord

Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.

Quick Explanation

To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:

\u001b[{format};{color}m