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
CREATE TABLE `entity` ( | |
`id` INT NOT NULL AUTO_INCREMENT, | |
`name` varchar(128) NOT NULL, | |
PRIMARY KEY (`id`) | |
); | |
CREATE TABLE `group` ( | |
`id` INT NOT NULL AUTO_INCREMENT, | |
`name` varchar(128) NOT NULL, | |
PRIMARY KEY (`id`) |
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
#!/bin/sh | |
# | |
# mysql-pool.sh | |
# | |
# Implements connection pool for MySQL connections. | |
# | |
##### start script name |
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
#!/bin/sh | |
# | |
# ssh-pool.sh | |
# | |
# Implements connection pool for SSH connections. | |
# | |
##### start script name |
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
#!/bin/sh | |
# | |
# warm-up.sh | |
# | |
# Perform "warm up" on database tables. | |
# | |
##### |
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
' | |
' Soybeans: Global Production and Usage | |
' | |
' Build a Sankey Diagram | |
' http://sankeymatic.com/build/ | |
' | |
' SankeyMATIC Manual | |
' http://sankeymatic.com/manual/ | |
' | |
' node colors |
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://eyewitness.io/ |
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
INSERT INTO `person` (`id`, `name`, `birthday`, `height`, `wears_glasses`) VALUES (NULL, 'Adrian Stubblefield', '2013-09-11', 57, 0); | |
INSERT INTO `person` (`id`, `name`, `birthday`, `height`, `wears_glasses`) VALUES (NULL, 'Marcus Duck', '1966-08-22', 77, 0); | |
INSERT INTO `person` (`id`, `name`, `birthday`, `height`, `wears_glasses`) VALUES (NULL, 'Ngan Rome', '1974-11-29', 78, 0); | |
INSERT INTO `person` (`id`, `name`, `birthday`, `height`, `wears_glasses`) VALUES (NULL, 'Marguerita Poythress', '1966-07-15', 63, 0); | |
INSERT INTO `person` (`id`, `name`, `birthday`, `height`, `wears_glasses`) VALUES (NULL, 'Millie Pipes', '1975-06-24', 67, 0); | |
INSERT INTO `person` (`id`, `name`, `birthday`, `height`, `wears_glasses`) VALUES (NULL, 'Merlin Lacoste', '2007-11-05', 77, 1); | |
INSERT INTO `person` (`id`, `name`, `birthday`, `height`, `wears_glasses`) VALUES (NULL, 'Kam Benware', '2013-07-15', 55, 1); | |
INSERT INTO `person` (`id`, `name`, `birthday`, `height`, `wears_glasses`) VALUES (NULL, 'Kristal Dement', '1975-09-24', 76 |
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
DROP TABLE IF EXISTS `person`; | |
DROP TABLE IF EXISTS `friendship`; | |
DROP TABLE IF EXISTS `team`; | |
DROP TABLE IF EXISTS `membership`; | |
CREATE TABLE `person` ( | |
`id` int NOT NULL AUTO_INCREMENT, | |
`name` varchar(255) NOT NULL, | |
`birthday` DATE NOT NULL, | |
`height` int NOT NULL, |
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
CREATE TABLE tag | |
( | |
id INT(10) unsigned NOT NULL auto_increment, | |
name VARCHAR(255) NOT NULL, | |
PRIMARY KEY (id), | |
UNIQUE KEY tag_name (name) | |
); | |
CREATE TABLE tag_type | |
( |
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
var distance = require('euclidean-distance') | |
var lerp = require('lerp') | |
var pts = [[0, 0], [1, 4], [2, 9], [3, 2], [2, 0]] | |
//console.log(pts) | |
var distances = [] | |
var sum = [] |
NewerOlder