Skip to content

Instantly share code, notes, and snippets.

View SujalShah3234's full-sized avatar
:dependabot:
Hi there 👋

Sujal Shah SujalShah3234

:dependabot:
Hi there 👋
View GitHub Profile
@SujalShah3234
SujalShah3234 / typography.scss
Created January 7, 2023 11:44
Snippet for a mixin that makes organizing typography a bit easier
$typeography: (
'small': (
'font-size': 1.4rem,
'line-height': 100%,
'letter-spacing': 2%
),
'medium': (
'font-size': 2rem,
'line-height': 150%,
'letter-spacing': 2%,
@SujalShah3234
SujalShah3234 / .vscode-settings.json
Created October 13, 2022 06:51
My VSCode settings I use for my every projects 🚀
{
"[javascript][typescript][javascriptreact][typescriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[json][html][css][scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"css.lint.duplicateProperties": "warning",
"css.lint.emptyRules": "warning",
"debug.javascript.defaultRuntimeExecutable": {
@SujalShah3234
SujalShah3234 / hosts
Created August 21, 2022 10:08
Windows hosts that block all social sites. Thanks to (energized protection)
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
@SujalShah3234
SujalShah3234 / index.js
Created February 11, 2022 11:36
Code Academy 10 JavaScript code challenges for beginners
// Challenges
// - Try to make the solution to this problem as efficiently as possible.
// - Try to make optimized output
// Print all even numbers from 0 – 10
function printEvenNumbers(start = 0, end) {
for (let i = start; i <= end; i++) {
if (i % 2 === 0) console.log(i);
}
@SujalShah3234
SujalShah3234 / .prettierrc
Created August 9, 2021 12:34
Recommended prettier config for most project workspace outthere.
{
"singleQuote": true,
"trailingComma": "es5",
"requirePragma": false,
"arrowParens": "always"
}
<div class="grid-container">
<h1 class="mat-h1">Chart Examples</h1>
<mat-grid-list cols="2" rowHeight="350px">
<mat-grid-tile colspan="1" rowspan="1">
<mat-card class="dashboard-card">
<mat-card-header>
<mat-card-title>
Line Chart
</mat-card-title>