Skip to content

Instantly share code, notes, and snippets.

View ach206's full-sized avatar
💭
Discovering

Camille Hall ach206

💭
Discovering
View GitHub Profile
@IcanDivideBy0
IcanDivideBy0 / useCanvas.js
Last active September 28, 2021 03:14
Simple hook for canvas rendering in react
import React from "react";
// Usage
function App() {
const draw = React.useCallback(gl => {
gl.clearColor(0.0, 0.0, 0.0, 1.0);
gl.clearDepth(1.0);
gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);
}, []);
const canvasRef = useCanvas(draw, "webgl2");
@philipjewell
philipjewell / photobucket_bulk_download.md
Last active March 29, 2023 00:23
Download all your photobucket images in bulk via CLI

backstory

On Jul 4, 2017 theverge.com posted an article about photobucket (silently) no longer allowing their users to source their images on 3rd party websites for free, thus leaving websites all over the web broken displaying the following image in replace:

Me being one of those individual, I attempted to go into my photobucket account and download my content as I now have my own hosting I am able to store those images on; however, the only ways to bulk download (on desktop) is by downloading albums through their interface. Doing so, gave me the following error message: "Hmmm. Something didn't click. Want to give it another shot? Try again now."

Doing this serveral times, in different browsers (chrome, firefox and safari), after disabling all my addons and extensions (including ad blockers), it still didn't work.

At this point, doing anything on their website w

@lelandrichardson
lelandrichardson / operators.js
Last active December 21, 2020 00:15
React Native Animated API: Operators
/*
// All methods would return Animated values.
// All parameters would be either Animated Values or regular Numbers
// Examples:
// =========
Animated.Add(a, b); // a + b
Animated.Subtract(a, b); // a - b
Animated.Mult(a, b); // a * b
Animated.Divide(a, b); // a / b