Skip to content

Instantly share code, notes, and snippets.

View keiver's full-sized avatar

Keiver keiver

View GitHub Profile
@keiver
keiver / useAnimatedBackground.tsx.md
Last active January 6, 2025 21:24
useAnimatedBackground.tsx hook.

A React hook that generates an animated canvas background featuring two visual effects: a dynamic particle systems for fading lines and a rippling waves for a depth effect.

import { useEffect } from "react"

export interface ColorConfig {
 primary: string
@keiver
keiver / oauth.js
Created November 17, 2016 18:41
Get Authentication header with OAuth using oauth-1.0a and crypto-js
import OAuth from 'oauth-1.0a';
import CryptoJS from 'crypto-js';
/**
* oAuthHeader - Get Authentication header with OAuth.
*
* @param {string} url Request URL
* @param {string} method HTTP method.
* @return {object} Authentication header object
*/