Skip to content

Instantly share code, notes, and snippets.

View bentaber's full-sized avatar
🏔️

Ben Taber bentaber

🏔️
View GitHub Profile
@bentaber
bentaber / InstallPythonGDAL.md
Last active June 16, 2021 15:34 — forked from kelvinn/InstallPythonGDAL.md
Installing GDAL (Python 3.7) on Mac OS X

Install GDAL with netcdf support and GDAL Python Bindings via homebrew

Clean up any existing installs with

brew uninstall gdal netcdf libgeotiff libspatialite proj

Add osgeo tap and install (note this will also install python 3.7.7 as a dep)

@r35krag0th
r35krag0th / wgrib2_macos_build.sh
Last active June 6, 2023 02:47
Building wgrib2
#!/usr/bin/env bash
# NOTE: This requires you to have Homebrew installed
# --> https://brew.sh/
# NOTE: You need to have Homebrew's GCC installed
# --> brew install gcc
wget ftp://ftp.cpc.ncep.noaa.gov/wd51we/wgrib2/wgrib2.tgz
tar xvzf wgrib2.tgz
@leviyehonatan
leviyehonatan / PersistentCookieStore.kt
Last active July 6, 2023 09:08
This is a kotlin implementation of a persistent cookie store for android, using SharedPreferences and Gson for the actual persistence
internal class PersistentCookieStore(val context: Context) : CookieStore {
inner class DatedCookie(val cookie: HttpCookie, val creationDate: Date)
val SP_COOKIE_STORE = "cookieStore"
val SP_KEY_DELIMITER = "|"
val SP_KEY_DELIMITER_REGEX = "\\" + SP_KEY_DELIMITER
val cookieSharedPreferences = context.getSharedPreferences(SP_COOKIE_STORE, Context.MODE_PRIVATE)