Skip to content

Instantly share code, notes, and snippets.

View fallsimply's full-sized avatar

fall simply fallsimply

View GitHub Profile
@fallsimply
fallsimply / fancyLyrics.js
Created November 21, 2021 03:38
Spicetify Plugins
// NAME: fancyLyrics
// AUTHOR: fallsimpy
// DESCRIPTION: Fancy background for lyrics
/// <reference path="../globals.d.ts" />
(() => {
const sel = { lyricRoot: `div[style*="--lyrics-color"]` }
const rootEl = () => document.querySelector(sel.lyricRoot)
const update = () => !!rootEl && rootEl()?.style.setProperty("--lyrics-image", `url(${Spicetify.Player.data.track.metadata.image_large_url})`)
const style = `

Regexp

Find: (\w+) (\d+)

Replace:

<font
	android:fontStyle="normal"
	android:fontWeight="$2"
	android:font="@font/inter_$1" />
@fallsimply
fallsimply / data.sample.json
Created May 10, 2021 20:10
Azure Function.json Output Bindings Filter - https://jqplay.org/s/137wfQ6_gj
{
"bindings": [
{
"type": "httpTrigger",
"direction": "in",
"name": "req",
"methods": [
"get",
"post"
]
@fallsimply
fallsimply / Guide.md
Last active March 23, 2022 17:44
Spotify Tweaks

Windows

Requirements

Steps

  1. Close Spotify
  2. Navigate to %APPDATA%\Spotify\Apps in File Explorer (Win+R then paste %APPDATA%\Spotify\Apps)
  3. Right Click on xpui.spa then click Open Archive under 7-Zip
  4. Double Click on xpui.css in 7-Zip
  5. Paste the css from spotify.mod.css at the end of the file
@fallsimply
fallsimply / tabkill.bookmark.html
Last active February 21, 2021 02:58
various bookmarklets for chrome and chrome-based browsers (tested on brave & microsoft edge)
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL>
<DT><A HREF="about:kill" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAQmSURBVHgB7VVdTBxVFP7u/O0usOwK/VPEUsvWaiGCNamQtGpirDQY/P9Jij9NjLzUh8ZoTAqmj/bBmjQaH2xTq9ZgYmL6ssYmRG1q2qI1hP6ABSktJYWisMvu7MzszL2egSWl7C7uYk37wJfM5tyz597zzXfOPQMsYhE3GSzbHwNhVFgcb8sKamgpIUcIDs6Bk5aFD6qbMPJv8RkJ9H2HcqkIR5eXYKVv6bNg3hrkhEQnxORhxBPAyF/4dTSCTaU/oZ6ybEkls22BT+77GIMzW5RM5zgampcFsLLASwvzNDnGkBOSA2CUpaiAtll40LHxDvdhc5mCOon8RhIY1XGFIvfMS0CoS1erhQqE5q6ixDuKnODqqd0+Zfr8Aog7bUowgkJi4xJzxFTIdeXMSEAu1k4nZAneopxLn4aY4RAL5UlnxKoeZGjRGCpMBz0yQ+dczmm40rW8cNKQw6VBaaPPy8Cy92oaBL1lTOcYH+dfhX4YfoXtAu9+CduIzj7Vg6p1n+NMVgLifSjnDDxH9SqApvqlerZDgN2JCZ9AruAiySzxu+iPHRBJbrsucxKbnARe1fzYEZXwaf0eJGbCr5VAPKKc3HmspUJL7vXKroM6xkxF9JKROwV3dx391k1ZLnzUGmRHTXyoGVIJsWzF8er12NB9iuGb52WoXa1Ypr7Y2jtS2XZpTFHc0rsJN6
@fallsimply
fallsimply / test.md
Last active February 20, 2021 17:44

Sample Custom Parser

func customLineParse(line string) (tokens []string) {
	var str strings.Builder
	line = strings.TrimPrefix(line, "|")
	for _, char := range line {
		switch char {
		case '|':
			token := strings.TrimSpace(str.String())
 tokens = append(tokens, token)
package main
import (
"fmt"
"log"
"strings"
"golang.org/x/net/html"
)
@fallsimply
fallsimply / github.godocs-about.js
Created December 8, 2020 21:28
violentmonkey scripts - com.fallsimply.tweaks
// ==UserScript==
// @name github go docs (about)
// @namespace com.fallsimply.tweaks
// @version 1.0
// @author fallsimply
// @description adds documentation link to go projects on github
// @grant GM_xmlhttpRequest
// ==/UserScript==
let re = new RegExp('github.com/([^/]+)/([^/]+)');