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 / 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:
  • 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:
// 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;
@jherr
jherr / pokemon.json
Last active September 11, 2023 12:25
Pokemon list
[{
"id": 1,
"name": {
"english": "Bulbasaur",
"japanese": "フシギダネ",
"chinese": "妙蛙种子",
"french": "Bulbizarre"
},
"type": [
"Grass",
@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 / .zshrc
Created September 15, 2020 13:25
export ZSH="/Users/jherr/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(git)
source $ZSH/oh-my-zsh.sh
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
<linearGradient id="boxGradient" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color: #333;stop-opacity: 1" />
<stop offset="100%" style="stop-color: white;stop-opacity: 1" />
</linearGradient>
[
{
"url": "http://placedog.net/900?id=44",
"name": "Oso",
"text": "Best dog on the planet"
},
{
"url": "http://placedog.net/900?id=45",
"name": "Ripley",
"text": "Best dog in the world"

Keybase proof

I hereby claim:

  • I am jherr on github.
  • I am jherr (https://keybase.io/jherr) on keybase.
  • I have a public key ASDRInT-1RcfnxUl8uUCmoU3K2Joxb8pNp3lnwNwVZirJwo

To claim this, I am signing this object:

  1. Install @module-federation/nextjs-mf.
yarn add @module-federation/nextjs-mf
  1. Add resolutions to package.json:
  "resolutions": {