Run this example in a full screen, or click "Open".
Forked from Sumbera/L.CanvasOverlay.js
Run this example in a full screen, or click "Open".
A sample data file for dropping:
$ ./randomPointsGen.py 8000000 > points_data_for_dropping.txt
$ head -n 6 points_data_for_dropping.txt
121.762 17.147 848500ff
29.202 24.338 44b300ff
-63.768 106.568 418d00ff
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
Homebrew build logs for osmfilter on macOS 10.14.6 | |
Build date: 2020-05-13 21:17:30 |
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
Homebrew build logs for osmfilter on Ubuntu 14.04.5 LTS | |
Build date: 2019-02-27 17:32:08 |
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
$ go run walkFrom.go | |
input undirected lines: [[0 1] [1 2] [2 3] [3 0] [0 2] [1 3] [1 0] [4 4] [4 4]] | |
total 9 lines | |
lineID ! edge | |
---------------- | |
2 0 [2 3] | |
1 1 [1 2] | |
5 2 [1 3] | |
0 3 [0 1] |
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 | |
# -*- coding: utf-8 -*- | |
# ref: "How to fit bokeh plot size dynamically" (https://stackoverflow.com/questions/48879674/how-to-fit-bokeh-plot-size-dynamically) | |
def main(): | |
import io, sys, random | |
aspectRatio = 1 | |
ndata = 10 * 1000 | |
filename = 'bokeh_resize.html' | |
datax = [random.random()*200 for r in range(ndata)] |
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
$ ./sequence_sort.py | |
[[2, 3], [1, 2], [0, 1]] ==> | |
[0, 1] | |
[1, 2] | |
[2, 3] |
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
$ brew install grep gawk gzip | |
$ brew install gnu-tar gnu-sed gnu-time gnu-getopt |
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
$ echo -e "11pp22\n33qq" | while read line; do esc=$(printf '\033'); echo $line | gsed -e "s,\([0-9]\+\)\([a-z]\+\)\([0-9]\+\)$,\1${esc}[32m\2${esc}[0m\3,"; done | |
11pp22 | |
33qq |