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 = [] |
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
<?php | |
/** | |
* First Code Sample. | |
* | |
* Make a class which you would pass the components of someone's name | |
* (first name, last name) to the constructor, and have two functions | |
* callable off of the object: | |
* | |
* 1. Simply print out the whole name, i.e. "John Smith" |
NewerOlder