This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// https://go.dev/tour/generics/2 | |
import "fmt" | |
// List represents a singly-linked list that holds | |
// values of any type. | |
type List[T any] struct { | |
next *List[T] | |
val T | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# need pandoc (if want to support txt), img2pdf (if want to support images) and pdfjoin (for pdfs) | |
# stitch together txt, images and pdf files in a folder to an out pdf | |
# filenames must begin with their desired sequence number ie 1_foo.pdf 2_beach.png 4_ending_notes.txt | |
# there can be gaps in the sequence | |
import os | |
import glob | |
import sys | |
folder = sys.argv[1] if len(sys.argv)>1 else '.' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<style> | |
/* Colors */ | |
body { | |
background: url(http://i.imgur.com/aZty7Mq.png); | |
animation: mymove 4s linear infinite; | |
-webkit-animation: mymove 4s linear infinite; | |
-moz-animation: mymove 4s linear infinite; | |
} |