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
-- Roughly get a entity/field/type table from a parameterized schema | |
-- A bit buggy, as it currently duplicates some rows (particularly join tables) | |
SELECT | |
cols.table_name, | |
cols.column_name, | |
cols.ordinal_position, | |
cols.column_default, | |
cols.data_type, | |
CASE WHEN pks.column_name IS NOT NULL | |
THEN TRUE |
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
Verifying my Blockstack ID is secured with the address 13fUAkQcqgfNxNssTHt7y3WsuwZv97hC6B https://explorer.blockstack.org/address/13fUAkQcqgfNxNssTHt7y3WsuwZv97hC6B |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
neo4j: | |
image: neo4j:latest | |
ports: | |
- "7474:7474" | |
- "7687:7687" | |
environment: | |
NEO4J_AUTH: "none" |
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
/********************** | |
* Here are the code snippets from my InfoWorld article | |
* on JavaScript, properly formatted. Original article | |
* can be found here: | |
* | |
* http://www.infoworld.com/d/application-development/6-secrets-of-javascript-jedis-231322 | |
* | |
**********************/ | |
// ** Closures ** |
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
/* | |
* A limited example of using getters/setters as a way to iterate over a range | |
* some background info at: freeman.blogspot.com/2013/07/javascript-getters-and-setters-last.html | |
*/ | |
// Simple Array Iterator | |
// | |
// Expects array | |
var SimpleArrayIterator = function(arr){ | |
this.arr = arr; |