Skip to content

Instantly share code, notes, and snippets.

View abhijitdotsharma's full-sized avatar

Abhijit Sharma abhijitdotsharma

View GitHub Profile
@abhijitdotsharma
abhijitdotsharma / tsconfig.json
Last active February 28, 2023 01:41
TSCofig file for Component Library Blog
{
"compilerOptions": {
/* Visit https://aka.ms/tsconfig to read more about this file */
/* Projects */
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
@abhijitdotsharma
abhijitdotsharma / conditionalClassnames.js
Created February 21, 2023 03:56
Conditional Classnames
const cx = (...args) =>
args
.flat()
.filter((x) => {
console.log(`x : ${x}`);
return x !== null && x !== undefined && typeof x !== "boolean";
})
.join(" ");
const hasError = true;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct record
{
char name[50];
char rollno[40];
int marks;
}; //record struct, each containing info of one student