Skip to content

Instantly share code, notes, and snippets.

View edward70's full-sized avatar

Edward edward70

View GitHub Profile
@edward70
edward70 / limacons_working.py
Created December 31, 2022 05:25
Working implementation of limacon rendering using turtle
from turtle import *
from math import pi,cos
color('blue', 'green')
#speedup
speed(0)
delay(0)
tracer(0,0)
penup()
@edward70
edward70 / fizzbuzzgolf.js
Created April 12, 2021 08:00
fizzbuzz codegolf
for(i=1;i<101;i++)alert((i%3?'':'fizz')+(i%5?'':'buzz')||i)
#include <stdio.h>
int main(int argc, char *argv[]) {
if (argc == 2) {
printf("Knock Knock, %s\n", argv[1]);
} else {
fprintf(stderr, "Usage: %s name\n", argv[0]);
}
return 0;
}