View Map.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.view | |
import androidx.compose.runtime.* | |
import androidx.compose.ui.Modifier | |
import androidx.compose.ui.platform.LocalContext | |
import androidx.compose.ui.platform.LocalLifecycleOwner | |
import androidx.compose.ui.viewinterop.AndroidView | |
import androidx.lifecycle.Lifecycle | |
import androidx.lifecycle.LifecycleEventObserver | |
import com.mapbox.geojson.Point |
View input-gdalinfo.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Driver: GTiff/GeoTIFF | |
Files: grd-vv-native.tif | |
Size is 26569, 16673 | |
GCP Projection = | |
GEOGCRS["WGS 84", | |
DATUM["World Geodetic System 1984", | |
ELLIPSOID["unnamed",6378137,298.25722356049, | |
LENGTHUNIT["metre",1]]], | |
PRIMEM["Greenwich",0, | |
ANGLEUNIT["degree",0.0174532925199433]], |
View Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:20.04 | |
ENV LANG="C.UTF-8" LC_ALL="C.UTF-8" PATH="/home/python/.poetry/bin:/home/python/.local/bin:$PATH" PIP_NO_CACHE_DIR="false" | |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | |
python3 python3-pip python-is-python3 curl ca-certificates && \ | |
rm -rf /var/lib/apt/lists/* | |
RUN groupadd --gid 1000 python && \ | |
useradd --uid 1000 --gid python --shell /bin/bash --create-home python |
View crdts.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
class GrowCounter: | |
'''Convergent conflict-free replicated data type state based grow-only counter. | |
Guarantees strong eventual consistency. | |
''' | |
def __init__(self, n): | |
assert n > 0, 'at least one node in cluster' |
View tta.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
''' | |
pip install tqdm pillow mercantile | |
''' | |
''' | |
Simple image rotation script for test-time augmentation. | |
Usage: |
View tiler.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
''' | |
pip install tqdm numpy pillow mercantile 'rasterio==1.0b1' 'rio-tiler==1.0a7' | |
''' | |
import os | |
import argparse |
View initial-turn-restrictions.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View build_tf_1_4_0.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -o errexit | |
set -o pipefail | |
set -o nounset | |
# Usage: ./build_tf_1_4_0.sh broadwell /tmp/wheel | |
# | |
# Builds TensorFlow 1.4.0 from source for a specific architecture. | |
# Assumes Ubuntu 16.04, installs dependencies and the bazel buildsystem. |
View bk.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <climits> | |
#include <cstdint> | |
#include <cstdlib> | |
#include <algorithm> | |
#include <bitset> | |
#include <functional> | |
#include <iostream> | |
#include <iterator> | |
#include <limits> |
View app.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import argparse | |
import collections | |
import curses | |
import curses.textpad | |
#python3 -m venv --system-site-packages venv |
NewerOlder