Skip to content

Instantly share code, notes, and snippets.

View Atlas48's full-sized avatar

Atlas Cove Atlas48

  • @kompot-studios
  • Sainte-Marguerite D'Elle, France
View GitHub Profile
@Atlas48
Atlas48 / gp.awk
Last active September 18, 2022 11:38
Generates a svg pallete based on a textual list of colours
#!/usr/bin/awk -f
# gp.awk: generates a svg rendering of a textual pallete list
BEGIN {
if(!h) h=1080
if(!w) w=1920
c=0
print "<?xml version=\"1.0\" encoding=\"utf-8\" ?>"
printf("<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"%d\" width=\"%d\">\n", h, w)
}
{
@Atlas48
Atlas48 / template-ex.json
Last active August 29, 2015 14:04
DnD 3.5e character sheet data encoding template
{
name:{
charname:"Zutash Zutashin",
playername:"Jan Serps"
},
details:{
clarrace:{
class:{
primary:"bard",
secondary:"fighter"