Skip to content

Instantly share code, notes, and snippets.

View takeontom's full-sized avatar

Tom Smith takeontom

View GitHub Profile
# 18/7/2024
Today I went to London and ate a Cornish Pastie. It was great.
<html>
<head>
<title>Turtley Awesome School</title>
<style>
body {
background-color: rgb(255, 31, 100);
}
h1 {
import turtle
t = turtle.Turtle()
t.speed(0)
import random
def lightbulb():
t.pendown()
t.pencolor("#F9EA47")
t.circle(10)
import turtle
t = turtle.Turtle()
t.speed(0) # 1:slowest, 3:slow, 5:normal, 10:fast, 0:fastest
def circle_here(radius):
# Draws a circle centred on the current point.
initial_y = t.ycor()
t.penup()
t.sety(initial_y - radius)
t.pendown()
@takeontom
takeontom / upup
Last active October 4, 2025 14:25
#!/bin/bash
sudo apt update
sudo apt full-upgrade -y
flatpak update -y
sudo fwupdmgr get-updates
sudo fwupdmgr update -y
import random
# Create a list of possible numbers
numbers = list(range(1, 49 + 1))
# Shuffle them
random.shuffle(numbers)
# And then pick a selection
picked = numbers[:6]
if [ -z $PYENV_ROOT ]; then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
fi
export NVM_DIR="$HOME/.nvm"
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->