Skip to content

Instantly share code, notes, and snippets.

View ken-morel's full-sized avatar
🏠
Working from home

ken-morel ken-morel

🏠
Working from home
View GitHub Profile
print("this is a test") # seriously! nothing here
@ken-morel
ken-morel / python-embedded-for-Win10.md
Created May 7, 2024 17:19 — forked from jtmoon79/python-embedded-for-Win10.md
fully configuring embedded Python on Windows 10

Update: use PowerShell script PythonEmbed4Win.ps1.

The instructions in this gist have some subtle problems and this gist will not be updated.

About


@ken-morel
ken-morel / oddlog.py
Created May 18, 2024 06:25
python loger for colored and non-static console applicationd
import shutil, textwrap, time, contextlib, threading
from colorama import *
def fmtSize(byt):
if byt < 1:
return '%f b'%byt*8
elif byt < 1_000:
return '%f B'%byt
elif byt < 1_000_000:
@ken-morel
ken-morel / pydroidttkbootstrap.py
Last active May 31, 2024 00:23
Little statement to prevent msgcat error on initializing window in ttkbootstrap on pydroid3
import ttkbootstrap.localization
ttkbootstrap.localization.initialize_localities = bool
@ken-morel
ken-morel / cube.c
Created June 24, 2024 12:57 — forked from hkulekci/cube.c
OpenGL Cube Example
#include<stdio.h>
#include <gl/glut.h>
#define KEY_ESC 27 /* GLUT doesn't supply this */
int fullscreen = 0;
int mouseDown = 0;
float xrot = 100.0f;
float yrot = -100.0f;