Skip to content

Instantly share code, notes, and snippets.

View manavm1990's full-sized avatar
🏠
Working from home

Manav Misra manavm1990

🏠
Working from home
View GitHub Profile
@manavm1990
manavm1990 / markdown.md
Created June 17, 2019 22:56
Markdown Overview

This is a header

This is an even smaller header

Even smaller...

Quite small

Here is some normal text. A paragraph, even!

@manavm1990
manavm1990 / extensions.json
Last active November 12, 2019 14:18
VS Code Extensions
{
"recommendations": [
"2gua.rainbow-brackets",
"aaron-bond.better-comments",
"codezombiech.gitignore",
"coenraads.bracket-pair-colorizer-2",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"formulahendry.auto-rename-tag",
"kisstkondoros.vscode-gutter-preview",
@manavm1990
manavm1990 / settings.json
Last active November 12, 2019 14:21
VS Code Settings
{
"better-comments.highlightPlainText": true,
"css.validate": false,
"editor.accessibilitySupport": "off",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.fontFamily": "'Inconsolata', Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.minimap.enabled": false,
@manavm1990
manavm1990 / .stylelintrc
Created November 3, 2019 17:01
Stylelint Configuration
{
"extends": [
"stylelint-config-standard"
],
"plugins": ["stylelint-prettier"],
"rules": {
"prettier/prettier": true
}
}
.DS_Store
.cache
dist
node_modules
*.sw*
@manavm1990
manavm1990 / package.json
Last active November 12, 2019 14:43
Dev Dependencies for package.json
"devDependencies": {
"eslint": "^6.6.0",
"eslint-config-prettier": "^6.5.0",
"eslint-plugin-prettier": "^3.1.1",
"prettier": "1.19.1",
"stylelint": "^11.1.1",
"stylelint-config-prettier": "^6.0.0",
"stylelint-config-recommended": "^3.0.0",
"stylelint-prettier": "^1.1.1"
}
@manavm1990
manavm1990 / students.html
Last active November 5, 2019 17:00
Starter HTML for Demo SPA
<main>
<div class="container--students">
${generateStudentsHTML(st.students)}
</div>
<form action="#">
<div class="container--form">
<div>
<label for="student-pic">Enter a URL for the Student's Pic</label>
@manavm1990
manavm1990 / style.css
Last active November 4, 2019 22:05
Starter CSS for Demo SPA
/* Developer's Notes:
1. We add these CSS selectors 'roughly' in the order that we encounter them on the page.
2. We maintain 'neat and orderly' code, being mindful of any/all 'red marks.'
*/
body {
color: #333;
font-family: "Roboto", sans-serif;
font-size: 10px;
font-weight: 400;
line-height: 1.45;
{
"extends": [
"stylelint-config-recommended",
"stylelint-prettier/recommended"
]
}
@manavm1990
manavm1990 / index.js
Last active December 8, 2019 03:11
OOP Factory Fxn.
// Build prototype of methods
const proto = {
hello() {
return `Hello, my name is ${this.name}`;
}
};
// Merge a new proto object along with the properties and merge them.
const greeter = name =>
Object.assign(