Skip to content

Instantly share code, notes, and snippets.

View shakes76's full-sized avatar

Shakes shakes76

View GitHub Profile
@shakes76
shakes76 / .SciTEUser.properties
Created September 2, 2020 13:55
My SciTE User Config for Python development
tabsize=2
indent.size=2
use.tabs=0
line.margin.visible=1
position.width=1024
position.height=900
menu.language=\
@shakes76
shakes76 / profiles.json
Last active September 17, 2022 01:16
Windows Terminal Profiles (Ubuntu Solarised Dark, WinPython 3.6 Cascadia Code)
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"profiles":
@shakes76
shakes76 / test_imageio_pgms.py
Created January 25, 2015 12:12
Test script for the imageio PGM read member
# -*- coding: utf-8 -*-
"""
Test Read PGM member
Created on Sun Jan 25 21:52:38 2015
@author: shakes
"""
import imageio
image, depth = imageio.readPGM("lena.pgm")
@shakes76
shakes76 / imageio.py
Last active August 29, 2015 14:14
Simple Image IO Module for Python and the Finite Transform Library (FTL)
'''
This module extends scipy modules for saving and loading images losslessly.
It ensures files are written and arrays returned are in 32-bit integer format
PIL Modes: L - 8 bit, I - 32 bit, RGB, RGBA, 1 - 1 bit
@author: Shekhar S. Chandra
'''
import Image #PIL
import numpy as np
import scipy.misc