Skip to content

Instantly share code, notes, and snippets.

View igeligel's full-sized avatar
🤷‍♀️
Shifting bits around the world

Kevin Peters igeligel

🤷‍♀️
Shifting bits around the world
View GitHub Profile
const defaultConfig = {
a: true,
b: false
}
const overridingConfig = {
b: true
}
const finalConfig = {
@igeligel
igeligel / chore.md
Last active June 7, 2019 12:26
Issue Templates vue-realworld-example

What is changed

  • Build process
  • Dependencies
  • Other tools:
    • ...
    • ...

Current State

var vm = new Vue({
el: "#example",
data: {
message: "Hello"
},
computed: {
// a computed getter
reversedMessage: function() {
// `this` points to the vm instance
return this.message
{
// ...
"scripts": {
"start": "node cli.js",
"start:debug": "ndb node cli.js",
"test": "jest",
"test:debug": "ndb jest"
}
// ...
}
# global install with npm:
npm install -g ndb
# alternatively, with yarn:
yarn global add ndb
console.log('I am finally here' + variable);
declare module "iso-3166-1" {
declare type CountryName =
| "Afghanistan"
| "Åland Islands"
| "Albania"
| "Algeria"
| "American Samoa"
| "Andorra"
| "Angola"
| "Anguilla"
git log --format=format: --name-only | egrep -v '^$' | egrep -v 'yarn.lock|README.md|deploy|package' | sort | uniq -c | sort -r | head -5
onSubmit(email, password) {
this.$store.dispatch(LOGIN, { email, password }).then(() => {
this.$store.dispatch(GET_USER_INFORMATION).then(userInf => {
this.$store.dispatch(IS_FEATURE_A_ACTIVE, userInf).then(() => {
this.$store.dispatch(IS_FEATURE_B_ACTIVE, userInf).then(() => {
this.$router.push({ name: "home" });
});
});
});
});
@igeligel
igeligel / login.vue
Last active December 20, 2018 18:36
<template>
<div class="auth-page">
<!-- ... -->
<form v-on:submit.prevent="onSubmit(email, password)">
<fieldset class="form-group">
<input
class="form-control form-control-lg"
type="text"
v-model="email"
placeholder="Email"