Skip to content

Instantly share code, notes, and snippets.

View barnabas-szekeres's full-sized avatar

Barnabas Szekeres barnabas-szekeres

View GitHub Profile
@barnabas-szekeres
barnabas-szekeres / .env
Last active June 8, 2017 11:07
Sendy Docker Environment
DATABASE_HOST=mysql
MYSQL_DATABASE=sendy
MYSQL_USER=root
MYSQL_ROOT_PASSWORD=root
@barnabas-szekeres
barnabas-szekeres / counter-component.js
Last active February 18, 2017 22:01
Store states in sessionstorage
//Component
import Counter from '../store/counter';
export default {
data() {
return {
};
},
computed: {
counter() {
@barnabas-szekeres
barnabas-szekeres / entry.js
Last active January 2, 2016 22:42
Vue.js component structure
/* This is the main Vue instance */
/* Components imports */
import Calendar from './calendar'; //in the calendar folder index.js imported
import OtherComponent from './other-component'; //you can import other components
/* Main app initalization */
let app = new Vue({ // eslint-disable-line no-unused-vars
el: '#app',
data() {
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad