Skip to content

Instantly share code, notes, and snippets.

View joshparkerj's full-sized avatar
🥰

Josh Parker joshparkerj

🥰
View GitHub Profile
// ==UserScript==
// @name Settings on My Creations (no grid) json api
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Get the settings from json api. Don't attempt to style as grid
// @author Josh Parker
// @match https://creator.nightcafe.studio/my-creations
// @icon https://www.google.com/s2/favicons?sz=64&domain=nightcafe.studio
// @grant none
// ==/UserScript==
// ==UserScript==
// @name creation settings
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Get the settings from json api. No UI changes.
// @author Josh Parker
// @match https://creator.nightcafe.studio/my-creations
// @icon https://www.google.com/s2/favicons?sz=64&domain=nightcafe.studio
// @grant none
// ==/UserScript==
// ==UserScript==
// @name hover over time to see timestamp
// @namespace http://tampermonkey.net/
// @version 0.1
// @description hover over time to see timestamp
// @author Josh Parker
// @match https://creator.nightcafe.studio/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=nightcafe.studio
// @grant none
// ==/UserScript==
<!DOCTYPE html>
<html>
<head>
<title>fans</title>
<style>
.fan,
.inner-ring,
.outer-led,
.inner-led {
border-radius: 100%;
// ==UserScript==
// @name Sketchify Page!
// @namespace http://tampermonkey.net/
// @version 0.1
// @description use a simple sketch effect on any page
// @author Josh Parker
// @match *://*/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=wikipedia.org
// @grant none
// ==/UserScript==
@joshparkerj
joshparkerj / pick-some-stock.py
Created July 19, 2023 13:37
pick some stock
from numpy import random
a = ["AAPL",
"MSFT",
"AMZN",
"NVDA",
"GOOGL",
"TSLA",
"GOOG",
"META",
function calculateSpecificity(selector) {
// Remove :is(), :not(), and :has() pseudo-classes and retain their parameters
const cleanedSelector = selector.replace(/:(is|not|has)\(([^)]*)\)/g, ' $2 ');
const attributeRegExp = /\[[^\]]*\]/g;
const attributeCount = cleanedSelector.match(attributeRegExp)?.length || 0;
const noAttributes = cleanedSelector.replace(attributeRegExp, '');
const pseudoElementRegExp = /::[^.:#>~+\s]+/g;
const pseudoElementCount = noAttributes.match(pseudoElementRegExp)?.length || 0;
<!DOCTYPE html>
<html>
<head>
<title>S W A V E</title>
<style>
body {
overflow: hidden;
margin: 0;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>S W A V E</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Danfo&family=Jacquard+12&family=Poetsen+One&display=swap"