Skip to content

Instantly share code, notes, and snippets.

@lilybarrowman
lilybarrowman / FateV1.svg
Created May 22, 2021 03:58
Fate Series Anime Flowchart v1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lilybarrowman
lilybarrowman / CreateFolderPreview.py
Created February 25, 2018 21:17
A script that recursively copies the first file alphanumerically in folders to folder.jpg to set it as the folder's preview in Windows.
from PIL import Image
import os
from pathlib import Path
def setFolderImage(folder, recurse=True):
print(folder)
contents = os.listdir(folder)
files = [f for f in contents if os.path.isfile(Path(folder).joinpath(f))]
dirs = [d for d in contents if os.path.isdir(Path(folder).joinpath(d))]
images = [i for i in files if Path(i).suffix.lower() in ['.jpg', '.png']]
@lilybarrowman
lilybarrowman / PhpJavaWhitespace.java
Last active September 1, 2016 17:37 — forked from avafloww/PhpJava.java
This snippet of code is syntactically valid in PHP, Java and Whitespace, and produces the same output in all three.
/*<?php