Skip to content

Instantly share code, notes, and snippets.

View djirdehh's full-sized avatar
🏃‍♂️
runnin through the six

Hassan Djirdeh djirdehh

🏃‍♂️
runnin through the six
View GitHub Profile
<template>
<div>
<input v-model="number" type="number" />
<button @click="addNumber">Add new number</button>
</div>
</template>
<script>
import { emitter } from "../event-bus.js";
export default {
@djirdehh
djirdehh / event-bus.js
Created January 23, 2021 23:24
Event Bus Emitter
import mitt from "mitt";
export const emitter = mitt();
@djirdehh
djirdehh / users.ts
Created May 3, 2020 19:04
Seed data to populate users for the TinyHouse application as part of the Postgres + TypeORM lesson.
const users: User[] = [
{
id: "5d378db94e84753160e08b55",
token: "token_************",
name: "James J.",
avatar:
"https://res.cloudinary.com/tiny-house/image/upload/w_1000,ar_1:1,c_fill,g_auto/v1560648533/mock/users/user-profile-1_mawp12.jpg",
contact: "james@tinyhouse.com",
walletId: "acct_************",
income: 723796,
@djirdehh
djirdehh / listings.ts
Created May 3, 2020 19:03
Seed data to populate listings for the TinyHouse application as part of the Postgres + TypeORM lesson.
const listings: Listing[] = [
{
id: "5d378db94e84753160e08b30",
title: "Clean and fully furnished apartment. 5 min away from CN Tower",
description:
"2 bed, 2 bathroom cozy apartment in the heart of downtown Toronto and only 5 min away from the CN Tower, Scotiabank Arena, and Rogers Center.",
image:
"https://res.cloudinary.com/tiny-house/image/upload/v1560641352/mock/Toronto/toronto-listing-1_exv0tf.jpg",
host: "5d378db94e84753160e08b57",
type: ListingType.Apartment,
{
"name": "tinyhouse-v1-server",
"version": "0.1.0",
"dependencies": {
"express": "^4.17.1"
},
"devDependencies": {
"@types/express": "^4.17.0",
"@types/node": "^13.7.1",
"@typescript-eslint/eslint-plugin": "^2.19.2",
@djirdehh
djirdehh / .env
Created January 1, 2020 02:08
Sample .env file (without values) for client project after lesson 12.1 of Part II of the TinyHouse Fullstack React Masterclass.
PORT=
PUBLIC_URL=
DB_USER=
DB_USER_PASSWORD=
DB_CLUSTER=
G_CLIENT_ID=
G_CLIENT_SECRET=
SECRET=
NODE_ENV=
G_GEOCODE_KEY=
@djirdehh
djirdehh / connectBranding.txt
Last active December 29, 2019 21:36
Branding details used for Stripe Connect in lesson 10.2 of Part II of the TinyHouse Fullstack React Masterclass.
Business name: TinyHouse
Brand color: #1890ff
Logo/Icon: https://s3-us-west-2.amazonaws.com/s.cdpn.io/1211695/thlogowhite.jpg
@djirdehh
djirdehh / .env
Created December 29, 2019 21:25
Sample .env file (without values) for client project after lesson 10.2 of Part II of the TinyHouse Fullstack React Masterclass.
REACT_APP_S_CLIENT_ID=
REACT_APP_S_PUBLISHABLE_KEY=
@djirdehh
djirdehh / .env
Last active December 29, 2019 21:25
Sample .env file (without values) for server project after lesson 10.2 of Part II of the TinyHouse Fullstack React Masterclass.
PORT=
PUBLIC_URL=
DB_USER=
DB_USER_PASSWORD=
DB_CLUSTER=
G_CLIENT_ID=
G_CLIENT_SECRET=
SECRET=
NODE_ENV=
G_GEOCODE_KEY=
@djirdehh
djirdehh / .env
Created December 29, 2019 21:21
Sample .env file (without values) for after lesson 10.2 of Part II of the TinyHouse Fullstack React Masterclass.
PORT=
PUBLIC_URL=
DB_USER=
DB_USER_PASSWORD=
DB_CLUSTER=
G_CLIENT_ID=
G_CLIENT_SECRET=
SECRET=
NODE_ENV=
G_GEOCODE_KEY=