Skip to content

Instantly share code, notes, and snippets.

@rtzll
rtzll / index.html
Created December 11, 2020 17:23
simple css animation
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" href="style.css">
<title>rtzll</title>
</head>
<body>
<svg id="logo" width="414" height="119" viewBox="0 0 414 119" fill="none" xmlns="http://www.w3.org/2000/svg">
@rtzll
rtzll / app.py
Last active February 16, 2023 22:27
Using the app context in a flask blueprint
from flask import Flask
from blueprint import sample
app = Flask(__name__)
app.register_blueprint(sample)
app.config['SOMETHING'] = 'something'
if __name__ == '__main__':
app.run()
@rtzll
rtzll / bluebook_code_decryption.py
Created June 19, 2016 06:58
Ex Machina Easter egg - Book recommendation
# BlueBook code decryption
import sys
def sieve(n):
# Compute primes using sieve of Eratosthenes
x = [1]*n
x[1] = 0