Skip to content

Instantly share code, notes, and snippets.

View w0whitaker's full-sized avatar

William Whitaker w0whitaker

View GitHub Profile
@w0whitaker
w0whitaker / fetch-lit.js
Last active December 30, 2023 00:45
a little tool for fetching filler text from 'litipsum.com' (in progress)
const baseUrl = "https://litipsum.com/";
const apiUrl = baseUrl.concat("api");
const books = ["evelina", "adventures-sherlock-holmes", "dr-jekyll-and-mr-hyde", "dracula",
"life-of-samuel-johnson", "picture-of-dorian-gray", "pride-and-prejudice"];
const invalid = () => {
// thanks JetBrains AI!
let bookList = books.map((item, i) => {
if (i !== books.length - 1) {
return `"${item}", \n`;
@w0whitaker
w0whitaker / index.html
Created October 12, 2021 13:55
threespot assignment
<form action="/form/submit" method="get">
<label for="search" class="sr-only">Search</label>
<div class="search-form">
<input type="search" id="search" placeholder="Search" aria-label="search">
<button>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 18" preserveAspectRatio="xMidYMid meet">
<path d="M6.943 0a6.943 6.943 0 015.66 10.966l4.333 4.334-1.636 1.636-4.334-4.334A6.943 6.943 0 116.943 0zm0 2.314a4.629 4.629 0 100 9.257 4.629 4.629 0 000-9.257z" />
</svg>
</button>
</div>
@w0whitaker
w0whitaker / cloning list elements.markdown
Created February 10, 2016 14:28
cloning list elements
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management