Skip to content

Instantly share code, notes, and snippets.

@Dulani
Dulani / THREDDS_Radar_Server_AWS.ipynb
Created January 11, 2023 03:47 — forked from dopplershift/THREDDS_Radar_Server_AWS.ipynb
A Jupyter notebook showing how to use Python to access the NCEI radar archive on Amazon S3 through Unidata's THREDDS server.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Dulani
Dulani / markdown_details.md
Last active May 7, 2022 13:24
Test Markdown details with summary

H1

H2

  • UL above details
  • Second LI
Summary in outer details

Details below summary

@Dulani
Dulani / spec.json
Created April 26, 2022 02:34
Density histogram with a vertical rule and some other formatting
/*
Density histogram with a vertical rule and some other formatting.
*/
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"datasets": {
"linedata": [
{"b": 5},
{"b": 20},
{"b": 20},
@Dulani
Dulani / spec.json
Last active April 26, 2022 01:55
Vertical rule using datasets
/* Vertical rule using datasets */
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"datasets": {
"linedata": [
{"a": 1, "b": 30},
{"a": 2, "b": 45},
{"a": 3, "b": 50},
{"a": 4, "b": 60},
{"a": 5, "b": 70},
@Dulani
Dulani / spec.json
Last active April 26, 2022 01:35
Vega-Lite Chart with vertical rule movable with a slider.
/* Layering a verticle rule over existing data (with a control to boot) */
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"params": [
{
"name": "x1",
"value": 5,
"bind": {"input": "range", "min": 0, "max": 10, "step": 1}
}
],
@Dulani
Dulani / example.md
Created April 7, 2021 02:12 — forked from ericclemmons/example.md
HTML5 <details> in GitHub

Using <details> in GitHub

Suppose you're opening an issue and there's a lot noisey logs that may be useful.

Rather than wrecking readability, wrap it in a <details> tag!

<details>
 Summary Goes Here
@Dulani
Dulani / Penguin Linux Export Path.sh
Created December 21, 2020 06:05
Add to .bashrc to find Python binaries in the PATH environment variable
# Add to .bashrc for Python binaries:
# Python and pip3
export PATH="${PATH}:/home/{username}/.local/bin"
(*
Use AppleScript to repeatedly click some part of the screen on a Mac 50 times with a 2 second pause between clicks (use on poorly designed applications that don't let you repeat a certain action).
https://apple.stackexchange.com/questions/266784/how-do-i-make-the-mouse-click-at-current-location-using-applescript
Comment: To supplement @jksoegaard's answer: one can also find cursor positions using "Screenshot" tool, which may be activated by Cmd+Shift+4 shortcut. Then just point the cursor to any area and remember the numbers that is shown near the pointer.
*)
repeat 50 times
tell application "System Events"
click at {1073, 373}
@Dulani
Dulani / instal_python-opencv_rpi3.md
Created July 18, 2020 06:07
Solutions to pip installing python-opencv on Raspbian Buster on an RPi 3