Skip to content

Instantly share code, notes, and snippets.

View MichaelCurrie's full-sized avatar

Michael B. Currie MichaelCurrie

View GitHub Profile
@Thiagobc23
Thiagobc23 / gantt.py
Created August 30, 2021 02:46
Gantt chart with Matplotlib
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.patches import Patch
from pandas import Timestamp
##### DATA #####
data = {'Task': {0: 'TSK M',
1: 'TSK N',
2: 'TSK L',
@kived
kived / main.py
Created February 9, 2015 20:15
Kivy: Android keep screen on
import kivy
kivy.require('1.8.0')
from kivy.app import App
from kivy.lang import Builder
from jnius import autoclass
PythonActivity = autoclass('org.renpy.android.PythonActivity')
View = autoclass('android.view.View')
Params = autoclass('android.view.WindowManager$LayoutParams')
@kien-truong
kien-truong / Dictconfig example
Last active August 9, 2023 20:18
Example log dictionary config in pure python
logconfig = {
"version": 1,
"disable_existing_loggers": 0,
"root": {
"level": "DEBUG",
"handlers": [
"console",
"file",
"debugfile"
]