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
@djirdehh
djirdehh / .env
Created December 27, 2019 16:18
Sample .env file (without values) for after lesson 9.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 / listingBookings.ts
Last active October 5, 2022 17:13
Mock listingBookings object as used in lesson 7.4 of Part II of the TinyHouse Fullstack React Masterclass.
const listingBookings = {
total: 4,
result: [
{
id: "5daa530eefc64b001767247c",
tenant: {
id: "117422637055829818290",
name: "User X",
avatar:
"https://lh3.googleusercontent.com/a-/AAuE7mBL9NpzsFA6mGSC8xIIJfeK4oTeOJpYvL-gAyaB=s100",
@djirdehh
djirdehh / .env
Created December 22, 2019 23:43
Sample .env file (without values) for after lesson 5.3 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=
@djirdehh
djirdehh / .env
Last active December 22, 2019 23:42
Sample .env file (without values) for after lesson 4.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=
@djirdehh
djirdehh / users.ts
Created December 20, 2019 20:24
Mock users data used in lesson 3.3 of the TinyHouse Masterclass - Part II
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 December 20, 2019 20:23
Mock listings data used in lesson 3.3 of the TinyHouse Masterclass - Part II
const listings: Listing[] = [
{
_id: new ObjectId("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,
@djirdehh
djirdehh / bookingsIndex.ts
Created December 20, 2019 17:34
Example bookingsIndex object for TinyHouse course
// 2019-01-01 year: 2019 | month: 01 | day: 01
// 2019-01-02 year: 2019 | month: 01 | day: 02
// 2019-05-31 year: 2019 | month: 05 | day: 31
// 2019-06-01 year: 2019 | month: 06 | day: 01
// 2019-07-20 year: 2019 | month: 07 | day: 20
const bookingsIndex = {
"2019": {
"00": {
"01": true,
@djirdehh
djirdehh / index.css
Last active January 10, 2020 01:12
Master CSS file for the TinyHouse Application
@import "~antd/dist/antd.css";
@import url(https://fonts.googleapis.com/css?family=Sacramento);
.menu {
width: 100%;
padding: 0 20px;
line-height: 63px;
border: 0;
}
@media (max-width: 48em) {
.menu {
@djirdehh
djirdehh / .env
Created November 12, 2019 19:24
Sample .env file (without values) for Part I of the TinyHouse Fullstack React Masterclass.
PORT=
DB_USER=
DB_USER_PASSWORD=
DB_CLUSTER=
@djirdehh
djirdehh / listings.ts
Created November 4, 2019 02:10
Mock listings data used in lesson 1.9 of the TinyHouse Masterclass
export const listings = [
{
id: "001",
title:
"Clean and fully furnished apartment. 5 min away from CN Tower",
image:
"https://res.cloudinary.com/tiny-house/image/upload/v1560641352/mock/Toronto/toronto-listing-1_exv0tf.jpg",
address: "3210 Scotchmere Dr W, Toronto, ON, CA",
price: 10000,
numOfGuests: 2,