Skip to content

Instantly share code, notes, and snippets.

View kylezoa's full-sized avatar

Kyle Cheung kylezoa

View GitHub Profile
@kylezoa
kylezoa / cropAndStraightenBatch.jsx
Created December 21, 2020 23:49 — forked from discostu105/cropAndStraightenBatch.jsx
An photoshop batch script for crop & straighten photo from Jeffrey Tranberry (modified to save LZW TIF)
// cropAndStraightenBatch.jsx
// Copyright 2006-2008
// Written by Jeffrey Tranberry
// Photoshop for Geeks Version 2.0
/*
Description:
This script demonstates how to batch process
a folder of images using the crop and straighten command
*/
@kylezoa
kylezoa / geotiff2Hsv.py
Created May 20, 2020 17:59
Convert red, green, blue band rasters to HSV raster
import numpy as np
import rasterio
from matplotlib.colors import rgb_to_hsv
def geotiff2Hsv(blue_fp = None, green_fp = None, red_fp = None,
save_path = None):
# open the blue, green, and red bands as rasterio objects
blue_rio = rasterio.open(blue_fp)
@kylezoa
kylezoa / gist:aa70d1570227d578b951a93f7fbb41b8
Created April 11, 2019 18:05
make sequential directories in windows
for /l %i in (start, step, end) do md %i
### Keybase proof
I hereby claim:
* I am kylezoa on github.
* I am kylezoa (https://keybase.io/kylezoa) on keybase.
* I have a public key whose fingerprint is 3E0C ED51 1D69 0D42 27EC 3313 614D 86B1 A49B 2EA1
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am kylezoa on github.
  • I am kylezoa (https://keybase.io/kylezoa) on keybase.
  • I have a public key whose fingerprint is A174 4DB4 7C99 E534 37E9 C09E D70F 352B E07F 887D

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am kylezoa on github.
  • I am kylezoa (https://keybase.io/kylezoa) on keybase.
  • I have a public key whose fingerprint is 9EFC 9077 A129 CD65 926F CB87 0CEB 6A3D A2E7 33D1

To claim this, I am signing this object: