Skip to content

Instantly share code, notes, and snippets.

View vexx32's full-sized avatar
💜
Turn your faults into faultlore and share them with the world.

Rain Sallow (/u/ta11ow) vexx32

💜
Turn your faults into faultlore and share them with the world.
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vexx32
vexx32 / Tender Buttons.svg
Created September 12, 2020 02:08
from Tender Buttons by Gertrude Stein
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vexx32
vexx32 / The Desert Music.svg
Last active September 12, 2020 01:48
The Desert Music, by William Carlos Williams
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vexx32
vexx32 / get-classes-and-ids.ps1
Created July 13, 2020 03:07
PowerShell script to retrieve lists of classes and ids from a html string and output a CSS skeleton for them
[System.Text.RegularExpressions.MatchCollection]$classesAndIds = [regex]::Matches($html, 'class="(?<Classes>[^"]+)"|id="(?<Id>[^"]+)"')
$classes = [System.Collections.Generic.HashSet[string]]::new()
$ids = [System.Collections.Generic.HashSet[string]]::new()
$classesAndIds.Captures.Groups.ForEach{
if ($_.Name -eq 'Classes') {
$_.Value -split '[\s\r\n]' -replace '\{/?block:[^}]\}' |
Where-Object {$_} |
ForEach-Object {
@vexx32
vexx32 / Get-Age.ps1
Last active June 20, 2020 03:53
for Mark Kraus ♥
function Get-Age {
[CmdletBinding()]
param(
[Parameter(Mandatory)]
[ValidateScript(
{
$_ -lt [datetimeoffset]::UtcNow
}
)]
[datetimeoffset]