Skip to content

Instantly share code, notes, and snippets.

View wyhinton's full-sized avatar
💭
🦀 Emerging Rustacean 🦀

Webb Hinton wyhinton

💭
🦀 Emerging Rustacean 🦀
View GitHub Profile
@KRRISH96
KRRISH96 / RenderSmoothImage.jsx
Last active April 26, 2025 20:06
A React component to render images smoothly.
// RenderSmoothImage.jsx
import React from "react";
import './styles.scss';
export default ({ src, alt = "notFound", objectFit = "contain" }) => {
const [imageLoaded, setImageLoaded] = React.useState(false);
const [isValidSrc, setIsValidSrc] = React.useState(!!src);
return (

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@patarapolw
patarapolw / Google Sheets API for TypeScript.ts
Last active March 14, 2024 15:38
Google Sheets API for TypeScript
// yarn add googleapis@27 @types/node
import fs from "fs";
import readline from "readline";
import {google} from "googleapis";
import { OAuth2Client } from "google-auth-library";
const CRED_PATH = "secret/credentials.json";
const TOKEN_PATH = "secret/token.json";
const SCOPES = ["https://www.googleapis.com/auth/spreadsheets.readonly"];
@benwurth
benwurth / BasicEqualizerGenerator.jsx
Created September 21, 2013 00:33
A simple script for Adobe After Effects that generates 10 separate null objects with keyframe data for different audio frequency bands. You can then use these nulls to set up a responsive graphical equalizer (frequency analyzer).
{
//Begin Undo group
app.beginUndoGroup("Generate Graphical Equalizer");
/*Variables:*/
//How far apart each null is placed across the screen
var nullPlacementWidth = 0;
//Creates a variable that holds the selected comp
var curItem = app.project.activeItem;
//Creates an array that stores the lowpass values and the highpass values