Skip to content

Instantly share code, notes, and snippets.

View ZachSaucier's full-sized avatar
💻
I have a lot to be humble about.

Zach Saucier ZachSaucier

💻
I have a lot to be humble about.
View GitHub Profile
@ZachSaucier
ZachSaucier / Color-list-nth-type-input.scss
Last active August 29, 2015 14:25
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
$colors: #FF0097,
#A200FF,
#00ABA9,
#8CBF26,
#1BA1E2,
#E671B8,
SetTitleMatchMode, 2
Run "C:\Program Files (x86)\Opera Next\launcher.exe" --new-window http://glslsandbox.com/e#33294.3
WinWait, Opera
IfWinExist, Opera
{
WinActivate, Opera
Send {F11}
#Persistent
SetTimer, CheckBottom, 100
return
{
"BBM": [
"A Day To Remember - City of Ocala",
"A Day to Remember - Right Back At It Again",
"Abandoned By Bears - Bad Luck",
"Abandoned By Bears - Counting Consequences",
"Abandoned By Bears - Heads or Tails",
"Abandoned By Bears - We Are Never Ever Getting Back Together (Taylor Swift Cover)",
"As I Lay Dying - Defender",
"Asking Alexandria - The Road",
{
"Chill funk": [
"Snakehips - On & On",
"GRiZ - Wonder Why",
"Joe Cocker - Feelin' Alright.mp3",
"Daft Punk - Solar Sailer (Pretty Lights Remix)",
"Pretty Lights - A Million Tomorrows",
"Atu - Wanna Luv U",
"Pretty Lights - Pretty Lights vs. Led Zeppelin",
"Pretty Lights - Around The Block feat. Talib Kweli",
import os, glob, eyed3
os.chdir("./")
for file in glob.glob("*.mp3"):
filename = os.path.basename(file)
if " - " in filename:
artist, track = filename.split(' - ')
if "".__eq__(track):
track = artist
artist = ""
float dist = 0.5*0.5 - (m.x * m.x + m.y * m.y);
float t = mix( dist / border, 1., max(0., sign(dist - border)) );
gl_FragColor = mix(color0, color1, t);

Windows 10 setup

Step 1) In your .bashrc (you can use something like vim ~/.bashrc to get there), change the following:

This changes the color and removes the host from the bash prompt

if [ "$colo_-prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[0;37m\]\u\[\033[00m\]:\[\033[01;96m\]\w\[\033[00m\]\$ '
else
interface YearDropdownPluginConfig {
text: string;
theme: string;
date: Date;
yearStart: number;
yearEnd: number;
}
const yearDropdownPlugin = function ({
text = "",
@ZachSaucier
ZachSaucier / doubly-linked-list.ts
Last active May 6, 2023 18:58
A (comprehensive?) implementation of doubly linked lists using TypeScript.
// Note: This doubly linked list implementation is meant to cover most any use
// case of doubly linked lists. You likely don't need all of the functions
// included for your use case.
class DoublyLinkedListNode<T> {
public value: T;
public next?: DoublyLinkedListNode<T>;
public prev?: DoublyLinkedListNode<T>;
constructor(value: T) {
@ZachSaucier
ZachSaucier / index.html
Created December 4, 2023 23:07
devtools-detect console.info animation setup
<script type="module" defer>
import devtools from '/devtools-detect.js';
const consoleInfoAnimation = () => {
// console.info animation here
};
const handleDevtoolsChange = (e) => {
if (e.detail.isOpen) {
consoleInfoAnimation();