Skip to content

Instantly share code, notes, and snippets.

View jacobhq's full-sized avatar

Jacob Marshall jacobhq

View GitHub Profile
@jordienr
jordienr / Gradient.js
Created September 12, 2021 00:23
Stripe Mesh Gradient WebGL
/*
* Stripe WebGl Gradient Animation
* All Credits to Stripe.com
* ScrollObserver functionality to disable animation when not scrolled into view has been disabled and
* commented out for now.
* https://kevinhufnagl.com
*/
@wildestpixel
wildestpixel / code.py
Last active July 17, 2022 23:43
Raspberry Pi Pico & Pimoroni RGB Keypad HID in Circuitpython 6.2+
# Adapted from Sandy J Macdonald's gist at https://gist.github.com/sandyjmacdonald/b465377dc11a8c83a8c40d1c9b990a90 to configure all buttons and switch off all lights in loop
import time
import board
import busio
import usb_hid
from adafruit_bus_device.i2c_device import I2CDevice
import adafruit_dotstar
@FlyTechVideos
FlyTechVideos / server.py
Last active January 3, 2024 14:02
Simple web server which logs accesses and data [https://www.youtube.com/watch?v=TB3OEG0bKwc]
#!/usr/bin/env python3
from flask import Flask, request, send_from_directory
from datetime import datetime
from user_agents import parse
app = Flask(__name__)
def censor_ip(ip):
@diogocapela
diogocapela / moment-js-timezones.txt
Created September 7, 2018 00:10
List of All Moment.js Timezones
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmara
Africa/Asmera
Africa/Bamako
Africa/Bangui
Africa/Banjul
Africa/Bissau
@eekfonky
eekfonky / removing SSH known_hosts from Chromebook
Last active December 30, 2023 17:18
ChromeOS – removing SSH known_hosts from Chromebook
# Here is how to remove a known host fingerprint (from known_hosts) on a Chromebook.
term_.command.removeKnownHostByIndex(INDEX);
# Replace INDEX with the number obviously.
# To clear all the known hosts:
term_.command.removeAllKnownHosts();
@dariuszparys
dariuszparys / .hyper.js
Last active May 4, 2022 22:53
Hyper.js terminal settings with Fira Code
// This configuration is meant to be used in WSL v1 for Windows
// It is also not maintained anymore, as I switched to Windows Terminal
module.exports = {
config: {
// Disabling WebGL renderer to make font-ligatures work
// https://github.com/tolbertam/hyper-font-ligatures#disabling-webgl-rendering
webGLRenderer: false,
// default font size in pixels for all tabs
@danharper
danharper / background.js
Last active March 30, 2024 18:25
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});