Skip to content

Instantly share code, notes, and snippets.

@BjoernSchilberg
BjoernSchilberg / LICENSE.txt
Created May 4, 2023 20:34 — forked from addyosmani/LICENSE.txt
Offline Text Editor in < 140 bytes (115 bytes). Powered by localStorage & contentEditable
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Copyright (C) 2014 ADDY OSMANI <addyosmani.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
@BjoernSchilberg
BjoernSchilberg / Makefile
Created May 4, 2023 08:24 — forked from alexedwards/Makefile
Boilerplate Makefile for Go projects
# Change these variables as necessary.
MAIN_PACKAGE_PATH := ./cmd/example
BINARY_NAME := example
# ==================================================================================== #
# HELPERS
# ==================================================================================== #
## help: print this help message
.PHONY: help
# juggling_balls.py
import random
import turtle
class Ball(turtle.Turtle):
MAX_VELOCITY = 5
GRAVITY = 0.07
BAT_VELOCITY_CHANGE = 8
# juggling_balls_game.py
import turtle
import time
import random
from juggling_balls import Ball
# Game parameters
WIDTH = 600
@BjoernSchilberg
BjoernSchilberg / README.md
Last active December 14, 2022 21:41
VINDRIKTNING
@BjoernSchilberg
BjoernSchilberg / tetris.py
Created December 8, 2022 18:49 — forked from timurbakibayev/tetris.py
Tetris game in Python
import pygame
import random
colors = [
(0, 0, 0),
(120, 37, 179),
(100, 179, 179),
(80, 34, 22),
(80, 134, 22),
(180, 34, 22),
@BjoernSchilberg
BjoernSchilberg / index.html
Last active October 17, 2022 18:51
Little tailwindcss example with Randoma11y colors
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<style>
/*
@BjoernSchilberg
BjoernSchilberg / README.md
Last active October 3, 2022 17:56
Allsky