Skip to content

Instantly share code, notes, and snippets.

View MalikBagwala's full-sized avatar
🚀
Exploring new tools and paradigms

Malik Bagwala MalikBagwala

🚀
Exploring new tools and paradigms
View GitHub Profile
@MalikBagwala
MalikBagwala / onroad_features.md
Last active March 5, 2024 07:14
OnRoad Fullstack - Complete List of Features

Please visit the below link for most up to date information

https://www.maalik.dev/projects/onroad

Features

🖥️ Monorepo Setup

Our application adopts a monorepo architecture, consolidating backend and frontend code within a single repository. This streamlined approach facilitates efficient codebase management and simplifies the deployment process.

⚡ Zippy and Fast Frontend

@MalikBagwala
MalikBagwala / terminal-commands.md
Created September 16, 2022 08:39 — forked from bradtraversy/terminal-commands.md
Common Terminal Commands

Common Terminal Commands

Key Commands & Navigation

Before we look at some common commands, I just want to note a few keyboard commands that are very helpful:

  • Up Arrow: Will show your last command
  • Down Arrow: Will show your next command
  • Tab: Will auto-complete your command
  • Ctrl + L: Will clear the screen
@MalikBagwala
MalikBagwala / paginate.ts
Created November 3, 2021 05:05
A useful utility function to paginate using a page based method
export interface PaginationOptions {
totalItems: number;
currentPage?: number;
pageSize?: number;
maxPages?: number;
}
function paginate(options: PaginationOptions) {
const totalItems = options.totalItems || 1;
let currentPage = options.currentPage || 1;
const pageSize = options.pageSize || 10;
@MalikBagwala
MalikBagwala / javascript.md
Last active December 9, 2021 13:40
JavaScript interview question

What is functional programming?

Functional programming produces programs by composing mathematical functions and avoids shared state & mutable data

What is the difference between classical inheritance and prototypal inheritance?

Class Inheritance: instances inherit from classes (like a blueprint — a description of the class), and create sub-class relationships: hierarchical class taxonomies. Instances are typically instantiated via constructor functions with the new keyword. Class inheritance may or may not use the class keyword from ES6.

Prototypal Inheritance: instances inherit directly from other objects. Instances are typically instantiated via factory functions or Object.create() Instances may be composed from many different objects, allowing for easy selective inheritance.

What is the difference between a module and a package in python?

A module usually corresponds to one .py file containing Python code, A Python module which can contain submodules or recursively, subpackages is called a package. Technically, a package is a Python module with an __path__ attribute

What is the default implementation of python?

The default implementation of python is CPython (interpreter is writting in C language)

Write a simple program to find reverse of a string?

myString =  "abcdedg"
@MalikBagwala
MalikBagwala / is.js
Created May 30, 2020 07:07
JavaScript Fundaments
function is(value) {
const checks = {
get string() {
return value instanceof String || typeof value === "string";
},
get undefined() {
return typeof value === "undefined" || value === undefined;
},
get null() {
return value === null;
#!/bin/sh
# Update And Upgrade The System
echo "\e[1;32m Upgrading Ubuntu \e[0m"
sudo apt update && sudo apt upgrade -y
# Install Common Packages
echo "\e[1;32m Installing Common Developer Dependencies \e[0m"
sudo apt install -y git pwgen wget curl make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev \

I use react-table npm package and i store all the data required by the table in the state

componentDidMount() {
    this.props.client
      .query({
        query: ALL_SKUS
      })
      .then(({ data }) => {
        const skus = removeTypename(data.allSkuTypes);