Create virtual environment
python3 -m venv env/
Activate virtual environment
source env/bin/activate
Create virtual environment
python3 -m venv env/
Activate virtual environment
source env/bin/activate
| .fill-window { | |
| height: 100%; | |
| position: absolute; | |
| left: 0; | |
| width: 100%; | |
| overflow: hidden; | |
| } | |
| body { | |
| margin: 0px; | |
| } |
| import { contours } from 'd3-contour'; | |
| import * as GeoTIFF from 'geotiff'; | |
| import * as fs from 'fs'; | |
| const minLng = -95.9791062729049; | |
| const minLat = 29.468568269199807; | |
| const maxLng = -94.87582655116825; | |
| const maxLat = 30.377703838800894; | |
| let vals = undefined; |
| { | |
| "format": "image/png", | |
| "filename": "fractional-scale-test.png", | |
| "frames": [ | |
| { | |
| "maptime": "2020-08-30T12:00:00Z", | |
| "title": "2020-08-30T12:00:00Z", | |
| "overlays": [ | |
| { | |
| "type": "tile", |
| import SwiftUI | |
| import MapKit | |
| import PlaygroundSupport | |
| class SwellDataOverlay : NSObject, MKOverlay { | |
| let coordinate: CLLocationCoordinate2D | |
| let boundingMapRect: MKMapRect | |
| let magnitude: Double | |
| let angle: Double |
| // Copyright 2014 The Chromium Authors. All rights reserved. | |
| // Redistribution and use in source and binary forms, with or without | |
| // modification, are permitted provided that the following conditions are | |
| // met: | |
| // * Redistributions of source code must retain the above copyright | |
| // notice, this list of conditions and the following disclaimer. | |
| // * Redistributions in binary form must reproduce the above | |
| // copyright notice, this list of conditions and the following |
| #!/usr/bin/python | |
| with open('/sys/class/power_supply/BAT0/status') as f: | |
| if 'Charging' in f.read(): | |
| print('The battery is currently charging') | |
| exit(0) | |
| scale = 1000000000000.000 | |
| voltage = 0 | |
| current = 0 |
| import urllib.request as request | |
| import json | |
| import matplotlib.pyplot as plt | |
| import matplotlib.colors as colors | |
| import matplotlib.cm as cm | |
| import numpy as np | |
| class BuoySpectraPlotter: | |
| def __init__(self, buoy_station): |
| extern crate ui; | |
| use ui::{Area, AreaDrawParams, AreaHandler}; | |
| use ui::draw::{Brush, FillMode, Path, SolidBrush, StrokeParams, LineCap, LineJoin}; | |
| use ui::draw::text::{Layout, Font, FontDescriptor, Weight, Italic, Stretch}; | |
| pub struct LineChart { | |
| pub title: String, | |
| pub x_axis_label: String, | |
| pub y_axis_label: String, |