OpenCV Player

import logging import cv2 def main(): cap = cv2.VideoCapture("uhU.webm") cap.set(cv2.CAP_PROP_POS_MSEC, 1000.0) #cap.set(cv2.CAP_PROP_POS_FRAMES, 1000.0) w, h = cap.get(cv2.CAP_PROP_FRAME_WIDTH), cap.get(cv2.CAP_PROP_FRAME_HEIGHT) fps = cap.get(cv2.CAP_PROP_FPS) stop = False while not stop: # Read frame…

Debian 10 (Buster) — Full sources.list

deb http://deb.debian.org/debian buster main contrib non-free deb-src http://deb.debian.org/debian buster main contrib non-free deb http://deb.debian.org/debian buster-updates main contrib non-free deb-src http://deb.debian.org/debian buster-updates main contrib non-free deb http://deb.debian.org/debian buster-backports main contrib non-free…

A TicTacToe game

import random board = ["-","-","-","-","-","-","-","-","-"] pl_in = {"a1":1,"a2":2,"a3":3,"b1":4,"b2":5,"b3":6,"c1":7,"c2":8,"c3":9} winner = None game_run = True def printBoard(board): print(board[0]+" | "+board[1]+" | "+board[2]) print("----------") print(board[3]+" | "+board[4]+" | "+board[5]) print("----------") print(board[6]+" |…

Async Solidity Contracts

Having seen @pirapira's sketch of Bamboo ( https://github.com/pirapira/bamboo/ ), which proposed to add better control about the "smart contract program flow", even across calls, I thought that this should certainly…

CSS Gradient Animation

.css-selector { background: linear-gradient(80deg, #000000, #08324d); background-size: 400% 400%; -webkit-animation: AnimationName 10s ease infinite; -moz-animation: AnimationName 10s ease infinite; -o-animation: AnimationName 10s ease infinite; animation: AnimationName 10s ease infinite; }…

Rimworld output log published using HugsLib

Log uploaded on Sunday, August 7, 2022, 2:23:09 PM Loaded mods: Harmony(brrainz.harmony)[mv:1.4.0.0]: 0Harmony(2.2.2), HarmonyMod(1.4.0) Core(Ludeon.RimWorld): (no assemblies) HugsLib(UnlimitedHugs.HugsLib)[ov:9.0.1]: 0Harmony(av:2.2.2,fv:1.2.0.1), HugsLib(av:1.0.0,fv:9.0.1) Adjacent Light(jp.AdjacentLight): Adjacent_Light(1.0.0) Allow Tool(UnlimitedHugs.AllowTool): AllowTool(av:3.6.0,fv:3.11.1) Ask Before Enter(Mlie.AskBeforeEnter)[mv:1.3.3]: AskBeforeEnter(av:1.0.0,fv:1.3.2)…