Skip to content

Instantly share code, notes, and snippets.

View chetanyakan's full-sized avatar
🎯
Focusing

Chetanya Kandhari chetanyakan

🎯
Focusing
View GitHub Profile
@chetanyakan
chetanyakan / README.md
Last active January 24, 2021 16:56
Linux lessons and tools to be productive

Linux lessons and tools to be productive

Plugins and Tips for jetbrains:

  1. Key Promoter X
  2. Nyan Progress Bar
  3. String Manipulation
  4. Rainbow Brackets
  5. Live Templates
@chetanyakan
chetanyakan / README.md
Last active December 30, 2020 09:13
Front-End Career Path Outline

Front-End Career Path Outline

  1. Intro to web-development and front-end dev, more specifically
    1. How the internet works
  2. How front-end fits in with the product development cycle
    1. How do FEs interact with PMs, designers, BEs?
  3. Intro to HTML/Intro to CSS
  4. Intermediate CSS
  5. CSS variables
@chetanyakan
chetanyakan / Javascript.md
Last active February 20, 2021 16:41
Attributes of a High Quality Unit Test

Techniques for writing great unit tests with - Javascript

Introduction

The article outlines best practices applied to the unit testing with javascript language and illustrates them by an example. We are going to focus on the client-side javascript code dependent on the angular js framework. The test uses Jasmine and Karma test frameworks, however, the setup of the project and framework is out of the scope of this article. The information about the setup could be found on the framework’s official pages. It is important to note that patterns and practices could be successfully applied to other testing frameworks, such as Jest.

@chetanyakan
chetanyakan / README.md
Created July 7, 2020 06:38
Email Writing Tips

Email Writing Tips

#1: Do Pay Attention to The Subject Line

Write a clear, concise subject line that reflects the body of the email. Avoid subject lines with,“Hi,” or “FYI,” and do not leave a subject line blank.

#2: Do Proofread

Check and recheck for spelling and grammatical errors. These errors make you seem unprofessional and will reduce the likelihood that the email will be taken seriously. Email software comes with many professional tools such as spell check - use them.

#3: Don’t Include Humor and Sarcasm

Emails can easily be misinterpreted through text without context. Humor is culture-specific. Avoid both humor and sarcasm in e-mails as the recipient may be confused, or worse, offended.

@chetanyakan
chetanyakan / Loader.jsx
Last active July 6, 2020 15:35
Webpack + Static file server
import React from 'react';
import loadingGif from 'assets/load.gif';
export default function Loader() {
return (
<div className='loading'>
<img
alt={'Loading'}
src={loadingGif}
@chetanyakan
chetanyakan / README.md
Last active July 9, 2020 17:44
JS Tidbits

JS Tidbits

  1. You can use bind to partially apply arguments to functions.
function map(cb, arr) {
    return arr.map(cb);
}
const superMap = map.bind(null, (item) => 'super ' + item);
superMap([1,2,3]);
@chetanyakan
chetanyakan / force-generate-package-lock-json.sh
Created May 10, 2018 10:48
A shell script to forcefully generate/update package-lock.json file. Run it from directory having your package.json file.
# A shell script to forcefully generate/update package-lock.json file.
# Run it from directory having your package.json file.
mkdir tmp-pkg-lock
cat package.json >> tmp-pkg-lock/package.json
cd tmp-pkg-lock
npm install
npm prune
npm dedupe
npm install