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
// #164 | |
// All two-part combinations of blue arcs from corners and sides, and blue straight, not straight, and broken lines. | |
size(600, 600); | |
background(#FCE8FA); | |
noFill(); | |
for (int i =0; i<300; i++) { | |
stroke(#0038CB); | |
arc(0, random(height), random(width), random(height*.5), random(0, PI), random(PI, TWO_PI)); |
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
// ==UserScript== | |
// @name stream-automark-graded | |
// @namespace stream-automark-graded | |
// @include https://stream.massey.ac.nz/mod/assign/*grade* | |
// @version 1.1 | |
// @author CMP / Creative Tech Wizards | |
// @grant none | |
// ==/UserScript== | |
var buttonAP = document.createElement("div"); |
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 gpxpy | |
import gpxpy.gpx | |
gpx_file = open('activity_1758925412.gpx', 'r') | |
vid_framerate = 30 | |
vid_startframe = 9140 | |
now = vid_startframe | |
vid_name = 'papawai-imgs-' |
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
#https://gist.github.com/valgur/2fbed04680864fab1bfc | |
import PIL.Image | |
import pprint | |
get_float = lambda x: float(x[0]) / float(x[1]) | |
def convert_to_degrees(value): | |
d = get_float(value[0]) | |
m = get_float(value[1]) |