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
| // Place your key bindings in this file to override the defaults | |
| [ | |
| // .. | |
| // all your other keybindings | |
| // ... | |
| // for sonic pi | |
| { | |
| "key": "ctrl+alt+s", |
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
| aws codepipeline get-pipeline-state --region us-west-2 --name ${CODEBUILD_INITIATOR#codepipeline/} --query 'stageStates[?actionStates[?latestExecution.externalExecutionId==`'${CODEBUILD_BUILD_ID}'`]].latestExecution.pipelineExecutionId' --output text |
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
| function fixhtml(html) { | |
| var div, dom, hasBlockChild, needWrapping, textOrInlineChildren, treeWalker; | |
| dom = document.createElement('div'); | |
| html = html.replace(/\s+/g, " ").replace(/> </g, "><"); // removes white space | |
| while (html.match(/<(h[1-5]|p|strong|div|u|em|a|bi) ?[^>]*>\s?<\/\1>/g)) { | |
| html = html.replace(/<(h[1-5]|p|strong|div|u|em|a|b|i) ?[^>]*>\s?<\/\1>/g, ""); //removes empty tags recursively, except iframes | |
| } | |
| dom.innerHTML = html; | |
| Array.from(dom.querySelectorAll("h1 h1")).forEach(function(node) { | |
| return node.outerHTML = node.innerHTML; //unwrap nested h1's |
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
| use_bpm 145 | |
| # Our chord sequence | |
| p1 = [chord(:E3,"minor7"), | |
| chord(:G3,"major7"), | |
| chord(:A3,"minor7"), | |
| chord(:G3,"m9"), | |
| chord(:E3,"m9"), | |
| chord(:C3,"minor7"), |
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 DefaultParse = HtmlSerializer.parseHtml; | |
| HtmlSerializer.parseHtml = html => { | |
| const tree = DefaultParse.apply(HtmlSerializer, [html]); | |
| const collapse = require('collapse-whitespace'); | |
| collapse(tree); | |
| // ensure that no DIVs contain both element children and text node children. This is | |
| // not allowed by Slate's core schema: blocks must contain inlines and text OR blocks. | |
| // https://docs.slatejs.org/guides/data-model#documents-and-nodes | |
| const treeWalker = document.createTreeWalker(tree, NodeFilter.SHOW_ELEMENT, { |
In your command-line run the following commands:
brew doctorbrew update
Outdated note: the process is a lot easier now: after you brew install postgresql you can initialize or stop the daemon with these commands: brew services start postgresql or brew services stop postgresql.
new out put may look like
To have launchd start postgresql now and restart at login:
brew services start postgresql
Or, if you don't want/need a background service you can just run:
pg_ctl -D /usr/local/var/postgres start