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
entrypoint: | |
sh -c " | |
echo 'CREATE DATABASE IF NOT EXISTS dbname;' > /docker-entrypoint-initdb.d/init.sql; | |
/usr/local/bin/docker-entrypoint.sh --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci" |
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
<template> | |
<div> | |
<component :is="dynamicComponent"/> | |
</div> | |
<template> | |
<script> | |
export default { | |
props: { | |
componentName: { |
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
// Reverse a string | |
// O(n) linear time | |
const reversePhrase = phrase => { | |
phrase = phrase.split('') | |
const halfPhrase = Math.floor(phrase.length / 2) | |
const length = phrase.length - 1 | |
for (i=0; i < halfPhrase; i++) { | |
let front = phrase[i] |
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
module.exports = { | |
extends: ['airbnb', 'plugin:prettier/recommended', 'prettier/react'], | |
parser: 'babel-eslint', | |
parserOptions: { | |
ecmaVersion: 2020, | |
// Can I remove these now? | |
ecmaFeatures: { | |
impliedStrict: true, | |
classes: 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
module.exports = { | |
trailingComma: 'es5', | |
tabWidth: 2, | |
semi: true, | |
singleQuote: true, | |
arrowParens: 'avoid', | |
} |
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
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true | |
end_of_line = lf | |
max_line_length = off |
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
module.exports = { | |
plugins: [require('tailwindcss'), require('autoprefixer')], | |
}; |