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
FROM mariadb | |
RUN { \ | |
echo '[mysqld]'; \ | |
echo 'character-set-server=utf8mb4'; \ | |
echo 'collation-server=utf8mb4_unicode_ci'; \ | |
} > /etc/mysql/conf.d/charset.cnf |
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
/* | |
* Copyright 2002-2018 the original author or authors. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |


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
export const actions = { | |
foo: async ({ commit }, data) => { | |
commit('foo', data) | |
}, | |
bar: async ({}, data) => { | |
return data | |
} | |
} |
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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// hyperline: { | |
// plugins: [ | |
// "time", | |
// "uptime", |
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
const date = new Date(2019, 0, 1); | |
const day = date.getDate().toString(); | |
console.log(day.padStart(2, '0')); |
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
function randomDate(startDate, endDate) { | |
return new Date( | |
startDate.getTime() + | |
Math.random() * (endDate.getTime() - startDate.getTime()) | |
); | |
} | |
// Random a date in 2019 | |
console.log(randomDate(new Date(2019, 0, 1), new Date(2019, 11, 31))); |
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
<script> | |
export default { | |
mounted: function () { | |
this.$nextTick(function () { | |
this.onResize(); | |
}) | |
window.addEventListener('resize', this.onResize) | |
}, | |
methods: { | |
onResize() { |