Skip to content

Instantly share code, notes, and snippets.

function setup() {
createCanvas(6400, 4800)
background(0)
colorMode(HSB, 360, 100, 100)
frameRate(1200);
}
function draw() {
let x = 0
import turtle
def curve(iteration):
'''
https://de.wikipedia.org/wiki/Drachenkurve#Pseudocode
Die Drachenkurve 0. Ordnung besteht nur aus der Anfangslinie „nach oben“.
Die Drachenkurve 1. Ordnung ist R (Anfangslinie, dann Rechtswende und eine weitere Linie)
Berechne eine Drachenkurve der Ordnung i folgendermaßen:
@morgulbrut
morgulbrut / a_w3w_playground.ipynb
Last active April 28, 2021 12:45
w3w playground
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@morgulbrut
morgulbrut / list.txt
Created October 4, 2019 11:35
Just a bunch of chlimate change deniers
Rob Lemeire, Publicist on Environmental and Climate Issues, ECD Ambassador
Eric Blondeel, retired Civil Engineer.
Emiel van Broekhoven, Emeritus Professor of Economics, University of Antwerp
Christian Dierick, Lead Expert, Energy Technology Solutions
Ferdinand Engelbeen, Former chemical process automation engineer, Akzo Nobel Chemicals
Samuel Furfari, Professor of Energy Geopolitics at the Free University of Brussels
Georges Geuskens, Emertitus Professor of Chemistry, Free University of Brussels and Expert Publicist on Climate Science
Drieu Godefridi, PhD in Law, author of several books
Jan Jacobs, Science Journalist Specializing in Climate and Energy Transition
Raymond Koch, Retired Research director at Lab. Plasma Physics, RMA Brussels and Fellow Lecturer at UMons.
# !/usr/bin/env python
# encoding: utf-8
from enum import Enum
import serial
import argparse
import logging
import Colorer
import csv
#include <WiFi.h>
#include <HTTPClient.h>
RTC_DATA_ATTR int bootCount = 0; // RTC_DATA_ATTR saves stuff in the RTC memory
const char* ssid = "*******";
const char* password = "********";
const int uS_TO_S_FACTOR = 1000000; /* Conversion factor for micro seconds to seconds */
const int S_TO_M_FACTOR = 60;
#!/usr/bin/env python
from random import shuffle
def generate(x_size, y_size):
'''generates pattern in the form:
[0,1,2]
[1,2,0]
[2,0,1]
@morgulbrut
morgulbrut / 7_segment.py
Created March 7, 2016 22:41
Short hack for using a LTS3401LE seven segment display on the pyboard.
# main.py -- put your code here!
from pyb import Pin
seven_seg = {'a':'X4',
'b':'Y11',
'c':'X6',
'd':'Y10',
'e':'X8',
'f':'Y9',