Skip to content

Instantly share code, notes, and snippets.

🖥
rm -rf node_modules && npm install

Tyler Lafayette TylerLafayette

🖥
rm -rf node_modules && npm install
Block or report user

Report or block TylerLafayette

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@TylerLafayette
TylerLafayette / create-component.sh
Created Aug 31, 2019
A script to quickly generate a React component.
View create-component.sh
#! /bin/bash
mkdir "$1"
printf "export { default } from \"./$1.container\"" > "$1/index.js"
printf "import React, { Component } from \"react\"\n\nimport $1 from \"./$1.component\"\n\nexport default class $1Container extends Component {\n\trender = _ => <$1 {...this.props} />\n}" > "$1/$1.container.js"
printf "import React, { Component } from \"react\"\n\nimport \"./$1.scss\"\n\nexport default class $1 extends Component {\n\trender = _ => <div></div>\n}" > "$1/$1.component.js"
printf "" > "$1/$1.scss"
View install-ancestry-stack.sh
#! /bin/bash
# check to make sure script is running as root
if [ "$EUID" -ne 0 ]
then echo "Please run this script using sudo to make sure all packages install correctly."
exit
fi
# attempt to disable user interaction/pauses during installation
export DEBIAN_FRONTEND=noninteractive
View keybase.md

Keybase proof

I hereby claim:

  • I am tylerlafayette on github.
  • I am tylerlafayette (https://keybase.io/tylerlafayette) on keybase.
  • I have a public key ASCH6g6aqGRkAjCiQK1wwhvlEwVX7zhbN6CuxjUnTwbhFwo

To claim this, I am signing this object:

View keybase.md

Keybase proof

I hereby claim:

  • I am xTylerCodes on github.
  • I am tylerlafayette (https://keybase.io/tylerlafayette) on keybase.
  • I have a public key whose fingerprint is 7D20 76DB 9CB4 047D 7F7D C0E9 906A 0B73 3494 E0F0

To claim this, I am signing this object:

View music_recommendation.json
Mongo Documents:
{
"_id": 1,
"songName": "C2C - Delta (official Video)",
"videoId": "PZbkF-15ObM",
"userId": 1
},
{
"_id": 2,
"songName": "Caravan Palace - Lone Digger",
You can’t perform that action at this time.