Skip to content

Instantly share code, notes, and snippets.

View carbocation's full-sized avatar

James Pirruccello carbocation

View GitHub Profile
@ww9
ww9 / gui_apps_using_go_html_js_css.md
Last active September 1, 2020 19:32
Simple GUI example using https://github.com/zserge/lorca. Shows Go<->Js communication. #go

GUI programs using Go and HTML/CSS/JS

Superior to similar solutions. Doesn't use electron or cgo. Easy communication between Go and Js. Can easily use libs like React, Vue and Angular.

This is a demo app using GUI library https://github.com/zserge/lorca which requires only Chrome and might even work with Firefox in the future.

from fastai.core import ItemBase
from fastai.vision import *
from fastai.basic_data import *
from fastai.imports import *
import rasterio as rio
import scipy
"""
TODO: separate transformations and such to different files
"""
@smestern
smestern / testSW.py
Last active November 9, 2023 10:57 — forked from ctralie/testOt.py
2D Histogram Sliced Wasserstein Distance via Scipy.stats
"""
Original Docstring -
Programmer: Chris Tralie
Purpose: To use the POT library (https://github.com/rflamary/POT)
to compute the Entropic regularized Wasserstein distance
between points on a 2D grid
Modified by Sam Mestern
Shows the usage of the sliced wasserstein distance to measure the distance between two
@rwightman
rwightman / timm_unet.py
Created April 15, 2021 19:12
An example U-Net using timm features_only functionality.
""" A simple U-Net w/ timm backbone encoder
Based off an old version of Unet in https://github.com/qubvel/segmentation_models.pytorch
Hacked together by Ross Wightman
"""
from typing import Optional, List
import torch