Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
apiVersion: argoproj.io/v1alpha1 | |
kind: WorkflowTemplate | |
metadata: | |
name: workflow-template-submittable | |
spec: | |
entrypoint: dag | |
templates: | |
- name: dag | |
inputs: | |
parameters: |
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 cartopy.crs as ccrs | |
from mpl_toolkits.axes_grid1 import make_axes_locatable | |
proj = ccrs.PlateCarree() | |
fig, ax = plt.subplots(subplot_kw=dict(projection=proj), figsize=(10, 10)) | |
s = ax.scatter(x['longitude'], x['latitude'], 10, x['iwv']) | |
gl = ax.gridlines(crs=proj, alpha=0.5, linestyle='--', draw_labels=True) | |
ax.coastlines(resolution='50m', color='black', linewidth=1) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
nix-build --attr system "./nixos.nix" -o result-closure | |
readlink -f result-closure > closure-nix-store-path.txt | |
rm -r system | |
mkdir system | |
nix copy ./result-closure --to file://./system |
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
# http://cimss.ssec.wisc.edu/training_data/ | |
# Record number:15,704 | |
# Record length: 338 | |
# Datatype: real*4 | |
# RECORD FIELDS | |
# 1:101 temperature profile [K] | |
# 102:202 mixing ratio profile [kg/kg] | |
# 203:303 ozone profile [ppmv] |
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
-- example of a dumb function which adds one to its input, and throws exception if given 0 | |
addOne :: Int -> Int | |
addOne n = case n of | |
0 -> error "dont add 0" | |
_ -> 1 + n | |
-- λ> 2 + (addOne 1) | |
-- 4 |
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 boto3 | |
import json | |
from decimal import Decimal | |
# TIME(GPST) SAT R P1(m) P2(m) L1(cyc) L2(cyc) D1(Hz) D2(Hz) S1 S2 LLI | |
# 08:29:20.0 G02 1 24371639.98 24371633.08 128073906.34 99797864.41 0.0 0.0 45 32 0 0 | |
dynamodb = boto3.resource('dynamodb', region_name='ap-southeast-2') | |
table = dynamodb.Table('obs') | |
epoch = "08:29:20.0" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder