Skip to content

Instantly share code, notes, and snippets.

Shohei Yokoyama abarth500

  • Tokyo Metropolitan University
  • Tokyo Japan
Block or report user

Report or block abarth500

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View attachInterrupt.cpp
const int ledPin = 7;
const int speakerPin = 9;
void setup() {
pinMode(2, INPUT_PULLUP);
pinMode(7, OUTPUT);
pinMode(9, OUTPUT);
attachInterrupt(0, speaker, FALLING);
}
@abarth500
abarth500 / index.html
Created Jan 24, 2019
Blockly workspace.js with XML file loading
View index.html
Promise.all(
["workspace.xml", "toolbox.xml"].map(async file => {
return fetch(file).then(
(res) => {
return res.text();
}
);
})
).then((xmls) => {
xmls.forEach((xml) => {
View lcs.js
// 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]);
View index.js
//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;
@abarth500
abarth500 / gist:23c1cd3e4e93399c5cb5
Created Dec 29, 2015
ソーシャルビッグデータ演習 演習2コマンド例 ヨーロッパのウィスキー
View gist:23c1cd3e4e93399c5cb5
node execute.js whisky-in-europe.example --bbox=-19.69,36.03,26.37,59.18 --search=whisky --max=10000
@abarth500
abarth500 / gist:980a0a1e939ce8d121b4
Created Dec 29, 2015
ソーシャルビッグデータ演習 演習2コマンド例 ディズニーランド
View gist:980a0a1e939ce8d121b4
node execute.js Disneyland.example --bbox=-117.928104,33.8034,-117.915487,33.81802 --max=10000
@abarth500
abarth500 / gist:b8d6233ffcea528a3ae4
Created Dec 29, 2015
ソーシャルビッグデータ演習 演習2ディレクトリに移動
View gist:b8d6233ffcea528a3ae4
cd node_modules\bbox2heatmap
@abarth500
abarth500 / gist:4e0f3d4531738114b075
Last active Dec 29, 2015
ソーシャルビッグデータ演習 演習2インストール
View gist:4e0f3d4531738114b075
cd c:\sobig\
npm install bbox2heatmap
@abarth500
abarth500 / start.bat
Created Dec 29, 2015
ソーシャルビッグデータ演習:クローラのインストール
View start.bat
start output\index.html
@abarth500
abarth500 / gist:90addb9083502244a38c
Created Dec 28, 2015
[ソーシャルビッグデータ演習] 演習1ディレクトリへ移動
View gist:90addb9083502244a38c
cd node_modules\flickr-tag-crawler
You can’t perform that action at this time.