This file contains 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
pkgs.freecad.overrideAttrs ( | |
final: prev: { | |
version = "1.0rc1"; | |
src = pkgs.fetchFromGitHub { | |
owner = "FreeCAD"; | |
repo = "FreeCAD"; | |
rev = "1.0rc1"; | |
hash = "sha256-bhRqWjYtwQ1mzZg03OmTFCt4eVgbc+YZnMNgwvRGvjc="; | |
}; |
This file contains 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
import svgwrite | |
import sys | |
import math | |
from cmath import rect, phase | |
# Takes a strings seperated by newline from stdin, sanitizes to only contain numbers 1-12, | |
# generates a compass for the average value this is saved as "compass.svg". | |
# Example usage: | |
# cat text.txt | python avgcompass.py | |
# Example compass generated: https://i.imgur.com/2m1FaAd.png |