Skip to content

Instantly share code, notes, and snippets.

View Asday's full-sized avatar
🐫
💥

Asday

🐫
💥
View GitHub Profile
Python 3.8.1 (default, Dec 31 2019, 18:44:59)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
>>> samoa = datetime.timezone(datetime.timedelta(hours=14))
>>> before = datetime.datetime(2011, 12, 29, tzinfo=samoa)
>>> before + datetime.timedelta(days=1)
datetime.datetime(2011, 12, 30, 0, 0, tzinfo=datetime.timezone(datetime.timedelta(seconds=50400)))
>>>
C:\Users\Asday>py -3
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> class A(wx.Frame):
... def __init__(self):
... super().__init__(None)
... self.Show()
...
>>> A()
from collections import OrderedDict
from ctypes import sizeof
from ctypes.wintypes import (
DWORD,
LONG,
WORD,
)
import pygame
from win32clipboard import (