Skip to content

Instantly share code, notes, and snippets.

from time import sleep
h=10
s=range(h,0,-1)
b=[[*s],[0]*h,[0]*h]
def p():
print("\n"*h)
for i in s:print(*((" "*h+"#"*h)[r[i-1]:r[i-1]+h]for r in b))
sleep(0.05)
def n(y,x,t,w):
b[y][x]=0
@jonaro00
jonaro00 / alphaTab-issue-1400.html
Created March 8, 2024 17:25
alphaTab-issue-1400 - change the version on line 4 between 933 and 938
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://cdn.jsdelivr.net/npm/@coderline/alphatab@1.3.0-alpha.938/dist/alphaTab.js"></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/@coderline/alphatab@1.3.0-alpha.933/dist/alphaTab.js"></script> -->
<meta charset="utf-8" />
<title>Tab Portal</title>
<style>
:root {
--main-bg-color: #5d9150;
@jonaro00
jonaro00 / main.rs
Created December 14, 2023 02:36
shuttle actix postgres with arc mutex in state
use actix_web::middleware::Logger;
use actix_web::{
error, get, post,
web::{self, Json, ServiceConfig},
Result,
};
use serde::{Deserialize, Serialize};
use shuttle_actix_web::ShuttleActixWeb;
use shuttle_runtime::CustomError;
use sqlx::{Executor, FromRow, PgPool};