Skip to content

Instantly share code, notes, and snippets.

View ErikCH's full-sized avatar
🏠
Working from home

Erik Hanchett ErikCH

🏠
Working from home
View GitHub Profile
@ErikCH
ErikCH / func.js
Created July 3, 2019 03:53
Function File for new Vue Function API
import Vue from 'vue';
import { plugin } from 'vue-function-api';
import { value } from 'vue-function-api';
Vue.use(plugin);
export const counter = value(0);
export const image = value('');
export const pressMe = () => {
@ErikCH
ErikCH / switch.js
Created February 20, 2019 05:56
Alternative To Switch Statements
//Program With Erik
const games = ['legend', 'pokemon', 'fortnite', 'blah']
games.forEach(val=> {
if(val === 'legend'){
console.log('legends')
} else if(val === 'pokemon') {
@ErikCH
ErikCH / gist:e9883d1fe70cdfda1e5a9e1adbcd1a9a
Created February 8, 2019 05:24
Vue 2.6 slots tutorial
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>My Test App</title>
<script src="https://unpkg.com/vue"></script>
</head>
<body>
@ErikCH
ErikCH / Readme.md
Last active October 17, 2018 04:45

Steps to install Amplify on your project from Program With Erik YouTube Channel

  • npm install -g @aws-amplify/cli

  • amplify configure

  • npm i aws-amplify

  • npm i aws-amplify-vue

  • amplify init

  • amplify add hosting

  • amplify publish

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="https://unpkg.com/vue"></script>
<title>Event this.$listener example</title>
<style>