Skip to content

Instantly share code, notes, and snippets.

View jyucsiro's full-sized avatar

Jonathan Yu jyucsiro

  • CSIRO
  • Melbourne, Australia
View GitHub Profile
@jyucsiro
jyucsiro / argo-in-kind.md
Last active April 22, 2021 02:14 — forked from darpr/argo-in-kind.md
"Argo Workflow" in `kind` Cluster

Argo in Kind

Play with "Argo Workflow" in your local kind cluster.

Prerequisites

The following instructions were tested in Ubuntu 22 April 2021

Docker Runtime

Ensure docker is installed and running.

K8s Client

@jyucsiro
jyucsiro / gist:1d463ce1708b09069194fa59b1fd6a30
Created December 20, 2018 21:51
Geoprocessing ABS Census
ogrinfo census2016_spca_vic_short.gpkg
ogrinfo -so -al census2016_spca_vic_short.gpkg
ogrinfo -sql "select Tot_P_P from census2016_spca_vic_sa2_short" census2016_spca_vic_short.gpkg
ogrinfo -sql "select * from census2016_spca_vic_sa2_short" census2016_spca_vic_short.gpkg | less
ogr2ogr -f "ESRI Shapefile" test.shp -sql "select geom,Tot_P_P from census2016_spca_vic_sa2_short" census2016_spca_vic_short.gpkg
@jyucsiro
jyucsiro / data_and_code.md
Last active November 9, 2018 03:54
Data analytics and code resources

Coding

Name URL Use in a classroom notes
Code club python projects https://codeclubprojects.org/en-GB/python/ Projects that introduce python that can be run in a computer lab during breaks. No installation required - all based using web IDE environments.

Data analytics and datasets

Keybase proof

I hereby claim:

  • I am jyucsiro on github.
  • I am jyucsiro (https://keybase.io/jyucsiro) on keybase.
  • I have a public key whose fingerprint is 9116 0618 D4DA 50D3 CF93 1D53 9927 E821 0F84 EB99

To claim this, I am signing this object:

@jyucsiro
jyucsiro / README.md
Last active October 18, 2017 01:46
AusOpenData Survey - Volumes for Open Gov Data initiatives

Australian open data survey series

  • Author: Jonathan Yu
  • Version: v0
  • Date: October 2017
  • Visualisation name: Volumes - Open Gov Data
@jyucsiro
jyucsiro / README.md
Last active October 18, 2017 01:47
AusOpenData Survey - Volumes

Australian open data survey series

  • Author: Jonathan Yu
  • Version: v0
  • Date: October 2017
  • Visualisation name: Volumes - Research Data and Gov Data
@jyucsiro
jyucsiro / README.md
Last active October 18, 2017 03:07
2017 AusOpenData Survey Pilot
@jyucsiro
jyucsiro / LICENSE.md
Created October 18, 2017 01:35
AusOpenData Survey - Variation by format and byte-size of datasets

Copyright (c) 2016, Tom May

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTH

@jyucsiro
jyucsiro / LICENSE.md
Last active October 18, 2017 01:29
AusOpenData Survey - Variation by format and counts of datasets

Copyright (c) 2016, Tom May

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTH

@jyucsiro
jyucsiro / cloud.js
Created October 13, 2017 06:47 — forked from blockspring/cloud.js
D3 Wordcloud
// Word cloud layout by Jason Davies, http://www.jasondavies.com/word-cloud/
// Algorithm due to Jonathan Feinberg, http://static.mrfeinberg.com/bv_ch03.pdf
(function() {
function cloud() {
var size = [256, 256],
text = cloudText,
font = cloudFont,
fontSize = cloudFontSize,
fontStyle = cloudFontNormal,
fontWeight = cloudFontNormal,