find ./server/app/pq/**/mason -type d -exec touch {}/index.js \;
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
{ | |
"workbench.editor.enablePreviewFromQuickOpen": false, | |
"workbench.editor.enablePreview": false, | |
"editor.minimap.enabled": false, | |
"sync.removeExtensions": true, | |
"sync.gist": "vscode-settings-quotablewater7" | |
} |
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
#!/bin/bash | |
BIN_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
# add a newline before printing text | |
fancy_echo() { | |
local fmt="$1"; shift | |
printf '\n%s\n' "$fmt" "$@" | |
} |
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 strict' | |
const express = require('express') | |
const request = require('request') | |
const configureRoute = handler => async (req, res, next) => { | |
try { | |
handler(req, res, next) | |
} catch (error) { | |
// we successfully caught an error |
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 WebsafeColorConverter | |
class InvalidHexError < StandardError; end; | |
def call(hex_color) | |
raise InvalidHexError unless valid_hex?(hex_color) | |
return hex_color if valid_3_char_hex?(hex_color) | |
return websafe_hex_color(hex_color) if valid_6_char_hex?(hex_color) |