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
// https://overpass-turbo.eu/ | |
// 上記のURLに行ってこのコードをペーストし、地図でBBOXを指定し、実行する。 | |
[out:json]; | |
way["highway"]({{bbox}}); | |
foreach((._;>;);out;); |
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
const int ledPin = 7; | |
const int speakerPin = 9; | |
void setup() { | |
pinMode(2, INPUT_PULLUP); | |
pinMode(7, OUTPUT); | |
pinMode(9, OUTPUT); | |
attachInterrupt(0, speaker, FALLING); | |
} |
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
Promise.all( | |
["workspace.xml", "toolbox.xml"].map(async file => { | |
return fetch(file).then( | |
(res) => { | |
return res.text(); | |
} | |
); | |
}) | |
).then((xmls) => { | |
xmls.forEach((xml) => { |
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
// prettified version of what can be found here: | |
// https://en.wikibooks.org/wiki/Algorithm_Implementation/Strings/Longest_common_subsequence#JavaScript | |
function LCS(a, b) { | |
var m = a.length, | |
n = b.length, | |
C = [], | |
i, | |
j; | |
for (i = 0; i <= m; i++) C.push([0]); |
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
//Parameter K | |
var k = 30; | |
//need async and flickr lib | |
// npm install async | |
// npm install flickrapi | |
/* Internal Arguments for the algorithm A | |
var c = {}; | |
var n = 0; |
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
node execute.js whisky-in-europe.example --bbox=-19.69,36.03,26.37,59.18 --search=whisky --max=10000 |
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
node execute.js Disneyland.example --bbox=-117.928104,33.8034,-117.915487,33.81802 --max=10000 |
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
cd node_modules\bbox2heatmap |
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
cd c:\sobig\ | |
npm install bbox2heatmap |
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
start output\index.html |
NewerOlder