Skip to content

Instantly share code, notes, and snippets.

View tjkhara's full-sized avatar

tjkhara

View GitHub Profile
.navigation {
&__checkbox {
display: none;
}
&__button {
background-color: $color-white;
// This is also a circle slightly bigger than the background circle
// To cover it properly
height: 7rem;
<!-- Navigation block start -->
<div class="navigation">
<input type="checkbox" class="navigation__checkbox" id="navi-toggle" />
<label for="navi-toggle" class="navigation__button">MENU</label>
<!-- Div for background start -->
<!-- We will put the navigation on top of this -->
<div class="navigation__background">&nbsp;</div>
<!-- Div for background end -->
@tjkhara
tjkhara / grid.html
Created May 3, 2021 09:26
Grid code from Jonas Advanced CSS
<section class="grid-test">
<div class="row">
<div class="col-1-of-2">Col 1 of 2</div>
<div class="col-1-of-2">Col 1 of 2</div>
</div>
<div class="row">
<div class="col-1-of-3">Col 1 of 3</div>
<div class="col-1-of-3">Col 1 of 3</div>
<div class="col-1-of-3">Col 1 of 3</div>
</div>
<div class="book">
<!-- Form start -->
<div class="book__form">
<form action="#" class="form">
<!-- Centered heading secondary start -->
<div class="u-margin-bottom-medium">
<h2 class="heading-secondary">Start booking now</h2>
</div>
<!-- Centered heading secondary end -->
@tjkhara
tjkhara / mongoose-express-boilerplate.js
Created March 15, 2021 05:12
mongoose, express boiler plate code
const express = require("express");
const bodyParser = require("body-parser");
const ejs = require("ejs");
const mongoose = require("mongoose");
const app = express();
app.set("view engine", "ejs");
app.use(bodyParser.urlencoded({ extended: true }));
@tjkhara
tjkhara / local install error
Created December 8, 2020 16:31
Deleted the node modules folder and tried to npm install again node version 12.20.0
tkhara@pop-os:~/envs/javascript_envs/task-manager$ npm install
> [email protected] install /home/tkhara/envs/javascript_envs/task-manager/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
info sharp Using cached /home/tkhara/.npm/_libvips/libvips-8.7.0-linux-x64.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=12.20.0 runtime=node arch=x64 libc= platform=linux)
make: Entering directory '/home/tkhara/envs/javascript_envs/task-manager/node_modules/sharp/build'
TOUCH Release/obj.target/libvips-cpp.stamp
CXX(target) Release/obj.target/sharp/src/common.o