Skip to content

Instantly share code, notes, and snippets.

@fuzzy-focus
fuzzy-focus / async_test.py
Created July 1, 2020 23:47
Test Asyncio in conjunction with threading
import asyncio
import threading
import queue
import itertools
import time
class Bus(threading.Thread):
def __init__(self, eq, bq):
super().__init__(daemon=True)
@fuzzy-focus
fuzzy-focus / mc-planer.py
Created August 20, 2019 12:55
Minecraft Planer
import math
import itertools
from collections import namedtuple
point = namedtuple("point", "x y z")
a,b,c = 10,10,5
dx,dy,dz = 10,10,5

Party-Loot

Menge Typ erhalten Halter
3200¢ Credsticks N/A verteilt
5 Azimut Laser Pistolen 2019-04-17
1 Azimut Artillerielaser 2019-04-17
1 Mehrzweckschrotflinte 2019-04-17
1 Sturmhammer 2019-04-17
@fuzzy-focus
fuzzy-focus / trivia_lists.ipynb
Last active October 11, 2018 20:57
Trivia List generator
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fuzzy-focus
fuzzy-focus / arch.md
Last active April 4, 2018 21:24
some notes and links for the upcoming arch install
@fuzzy-focus
fuzzy-focus / well_well_well.ipynb
Last active March 6, 2018 13:50
Well Well Well - Daily Challenge
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fuzzy-focus
fuzzy-focus / well_well_well.ipynb
Created March 6, 2018 12:41
Well Well Well - Daily Challenge
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fuzzy-focus
fuzzy-focus / fill_board_with_tiles.ipynb
Created March 3, 2018 17:32
place tiles on a board
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fuzzy-focus
fuzzy-focus / sudoku.py
Last active February 28, 2018 13:05
Solver for Sudoku-like puzzles with (more or less) arbitrary rules
import itertools
def is_unique(seq, symbols):
r = [el for el in seq if el in symbols]
return len(r) == len(set(r))
def rule_row_unique(board, symbols):
return all(is_unique(row, symbols) for row in board)