Skip to content

Instantly share code, notes, and snippets.

View stonebig's full-sized avatar

stonebig

  • France
View GitHub Profile
@jakevdp
jakevdp / PythonLogo.ipynb
Last active April 7, 2024 18:40
Creating the Python Logo in Matplotlib
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flyx
flyx / updateExecutableIcon.py
Created June 21, 2012 13:16
Updates the icon of a windows executable file.
import win32api, win32con
import os, os.path
import struct
import math
def checkPath(path, mode):
if not os.path.exists(path) or not os.path.isfile(path):
raise ValueError("{0} does not exist or isn't a file.".format(path))
if not os.access(path, mode):
raise ValueError("Insufficient permissions: {0}".format(path))