Skip to content

Instantly share code, notes, and snippets.

View jherr's full-sized avatar
💭
Making a bunch of videos for the coming weeks

Jack Herrington jherr

💭
Making a bunch of videos for the coming weeks
View GitHub Profile
@jherr
jherr / Dog-Detail.vue
Last active September 12, 2020 18:49
Module Federation for Vue 3 files
<style>
.container {
width: 800px;
margin: auto;
padding: 1rem;
}
.detail {
display: grid;
grid-template-columns: 30% 70%;
@jherr
jherr / pokemon.json
Last active September 11, 2023 12:25
Pokemon list
[{
"id": 1,
"name": {
"english": "Bulbasaur",
"japanese": "フシギダネ",
"chinese": "妙蛙种子",
"french": "Bulbizarre"
},
"type": [
"Grass",
// Creating arrays
const a1 = [1,2,3];
const a2 = Array.from([2,3,4]);
const a3 = new Array(20).fill(0).map((n,x) => x + 1);
// Length
a3.length;
// Destructuring arrays
const [v1, v2, v3] = a1;
  • Create your project with create-react-app.
  • Add a .npmrc file with the contents:
global-style = true
  • Add a blank .tesselignore file so that nothing is left out you don't intend.
  • Add a .tesselinclude file with the contents:
@jherr
jherr / Vue-on-Tessel-2.md
Last active December 9, 2018 22:28
Setup Vue on Tessel 2
  • Create your project with Vue CLI.
  • Add a .npmrc file with the contents:
global-style = true
  • Add a blank .tesselignore file so that nothing is left out you don't intend.
  • Add a .tesselinclude file with the contents: