This file contains hidden or 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
| /* | |
| MIT License http://www.opensource.org/licenses/mit-license.php | |
| Author Tobias Koppers @sokra | |
| */ | |
| "use strict"; | |
| const Watchpack = require("watchpack"); | |
| const objectToMap = require("../util/objectToMap"); | |
| class NodeWatchFileSystem { |
This file contains hidden or 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
| [{"inmate_id":"116","description":"Inmate reports symptoms related to anxiety management.","category":"Depression treatment","severity_label":"low","duration_amount":1.0,"duration_type":"('years', 'Years')","severity":"low"},{"inmate_id":"117","description":"Inmate reports symptoms related to hypertension monitoring.","category":"Anxiety management","severity_label":"low","duration_amount":1.0,"duration_type":"('years', 'Years')","severity":"low"},{"inmate_id":"118","description":"Inmate reports symptoms related to substance use disorder.","category":"Respiratory infections","severity_label":"low","duration_amount":1.0,"duration_type":"('years', 'Years')","severity":"low"},{"inmate_id":"119","description":"Inmate reports symptoms related to anxiety management.","category":"Gastrointestinal issues","severity_label":"low","duration_amount":1.0,"duration_type":"('years', 'Years')","severity":"low"},{"inmate_id":"120","description":"Inmate reports symptoms related to asthma treatment.","category":"Diabetes manage |
This file contains hidden or 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
| class Student { | |
| constructor(name, email) { | |
| this.name = name; | |
| this.email = email; | |
| } | |
| } | |
| class Bootcamp { | |
| constructor(name, level, students = []) { |
This file contains hidden or 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 processTasks = async (tasks, wait) => { | |
| let paused = false; | |
| let kill = false; | |
| const pause = () => paused = true; | |
| const resume = () => paused = false; | |
| const abort = () => kill = true; |
This file contains hidden or 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 emailAddresses = [ | |
| '[email protected]', | |
| '[email protected]', | |
| '[email protected]', | |
| '[email protected]', | |
| ] | |
| const isNullOrUndefined = (data) => data === null || data === undefined; | |
| const getEmailServiceProvider = (email) => { |
This file contains hidden or 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
| rename-branch() { | |
| current_branch_name="$(git branch --show-current)" | |
| renamed_branch="$1" | |
| eval '$(git branch -m ${current_branch_name} ${renamed_branch})' | |
| } |
This file contains hidden or 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://www.geekytidbits.com/performance-tuning-postgres/ | |
| -- http://www.craigkerstiens.com/2012/10/01/understanding-postgres-performance/ | |
| -- http://okigiveup.net/what-postgresql-tells-you-about-its-performance/ | |
| -- https://wiki.postgresql.org/wiki/Introduction_to_VACUUM,_ANALYZE,_EXPLAIN,_and_COUNT | |
| -- https://devcenter.heroku.com/articles/postgresql-indexes#b-trees-and-sorting | |
| -- http://www.databasesoup.com/2014/05/new-finding-unused-indexes-query.html | |
| -- performance tools | |
| -- https://www.vividcortex.com/resources/network-analyzer-for-postgresql | |
| -- show running queries (pre 9.2) |
This file contains hidden or 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
Show hidden characters
| { | |
| "presets": [ | |
| ["@babel/preset-env", { | |
| "debug": false, | |
| "modules": false, | |
| "useBuiltIns": false | |
| }] | |
| ], | |
| "plugins": [ | |
| "@babel/syntax-dynamic-import", |
This file contains hidden or 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
| def messages(options) | |
| query(messages: options) | |
| end |
This file contains hidden or 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 pSBCr = (d) => { | |
| let n = d.length, | |
| x = {}; | |
| if (n > 9) { | |
| ([r, g, b, a] = d = d.split(",")), (n = d.length); | |
| if (n < 3 || n > 4) return null; | |
| (x.r = i(r[3] == "a" ? r.slice(5) : r.slice(4))), | |
| (x.g = i(g)), | |
| (x.b = i(b)), | |
| (x.a = a ? parseFloat(a) : -1); |
NewerOlder