Skip to content

Instantly share code, notes, and snippets.

View mkchoi212's full-sized avatar
🎯
Focusing

Mike JS. Choi mkchoi212

🎯
Focusing
View GitHub Profile
import numpy as np
HORIZONTAL = 1
VERTICAL = 0
def first_nonzero(arr, axis, invalid_val=-1):
mask = arr!=0
return np.where(mask.any(axis=axis), mask.argmax(axis=axis), invalid_val)
def last_nonzero(arr, axis, invalid_val=-1):
@mkchoi212
mkchoi212 / Localizable.strings
Created April 18, 2019 18:30
Juice for macOS Empty Localization File
/*
Localizable.strings
Juice
Created by Mike Choi on 4/9/19.
Copyright © 2019 Mike JS. Choi. All rights reserved.
*/
// Menu Bar
"Control Center" = "";