Skip to content

Instantly share code, notes, and snippets.

View s-kganz's full-sized avatar

Keenan Ganz s-kganz

View GitHub Profile
@s-kganz
s-kganz / tagee_test.js
Created February 13, 2022 16:00
Compare JS and Python TAGEE implementations
var TAGEE = require('users/joselucassafanelli/TAGEE:TAGEE-functions');
var srtm = ee.Image("USGS/SRTMGL1_003");
var geom = ee.FeatureCollection(ee.Geometry.Rectangle(-111, 40, -110.9, 40.1));
// smooth the DEM
var gaussianFilter = ee.Kernel.gaussian({
radius: 3, sigma: 2, units: 'pixels', normalize: true
});
var srtmSmooth = srtm.convolve(gaussianFilter).resample("bilinear");
#: kivy 1.11.1
<MainLayout@BoxLayout>:
palindrome_label: palindrome_label
prime_label: prime_label
prime: 100000000
palindrome: 10000001
orientation: 'vertical'
BoxLayout:
orientation: 'horizontal'
@s-kganz
s-kganz / async.kv
Created July 20, 2020 04:33
Blocking Kivy application
#: kivy 1.11.1
<MainLayout@BoxLayout>:
palindrome_label: palindrome_label
prime_label: prime_label
prime: 100000000
palindrome: 10000001
orientation: 'vertical'
BoxLayout:
orientation: 'horizontal'
@s-kganz
s-kganz / libs.py
Created April 12, 2020 17:36
Starter code for Mad Libs in Python
# Get input from the user
noun = input("Give me a noun: ")
# Add the input to a template
line1 = "It's dangerous to go alone. Here, take this {}!".format(line1)
# Print the formatted template
print(line1)
@s-kganz
s-kganz / exams.ipynb
Last active February 2, 2020 16:21
Heatmap of exam dates
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.