Skip to content

Instantly share code, notes, and snippets.

View max-programming's full-sized avatar
Learning and building

Usman S. (Max Programming) max-programming

Learning and building
View GitHub Profile
max-programming /
Last active August 19, 2020 12:55
The Assignment / Task for Destructuring

Destructuring Assignment / Task

  • Create an array of objects
  • Each object should contain the data of a browser
  • Store the "company", "name" and "marketShare" in variables for any random item in the array every 2 seconds
  • log "{company} developed {name} which holds {marketShare} of the Market Share" to the console

To get other browser market shares: Browser Market Shares


👋 Hello And Welcome

This challenge is about my blog post on Ternary Operator.

  1. Create a function that will take a number as an argument
  2. Check if the number is positive or negative in the function and return a string it
  3. If it is positive, return "Positive number", else return "Negative number"
  4. Use Ternary Operator to check that

You can write the solution in the replies and also on the blog.

View DBMS_P2_Q11.sql
subject_id NOT IN (101, 103, 105)
max-programming / c_exam_last_question.c
Created November 8, 2022 05:43
Last Question in C Exam Code
View c_exam_last_question.c
#include <stdio.h>
int is_alphabet(char letter)
if (letter >= 'a' && letter <= 'z') return 1;
if (letter >= 'A' && letter <= 'Z') return 1;
return 0;
// we don't need else because we are returning
max-programming / service-worker.js
Created December 25, 2020 04:37
Service Worker files for Create React App 4.
View service-worker.js
/* eslint-disable no-restricted-globals */
// This service worker can be customized!
// See
// for the list of available Workbox modules, or add any other
// code you'd like.
// You can also remove this file if you'd prefer not to use a
// service worker, and the Workbox build step will be skipped.
import { clientsClaim } from 'workbox-core';
max-programming / PRAC6.asm
Last active December 31, 2022 18:34
All of my MI Assembly Codes
View PRAC6.asm
; Program to multiply two 8 bit numbers
LDA 2000H
LDA 2001H
MVI A, 00H
max-programming / cie1.html
Last active January 4, 2023 03:52
College Web Design Files
View cie1.html
<!-- design a web page using html for online railway ticket booking -->
<!DOCTYPE html>
<html lang="en">
<title>Railway Ticket Booking</title>
* {
font-family: sans-serif;

Steps for generating Express app with TypeScript

Initialize the app

npm init -y

Install TypeScript Dependencies

npm i typescript ts-node-dev @types/node -D
max-programming / practical_1.c
Last active February 20, 2023 04:14
DFS All Practicals
View practical_1.c
#include <stdio.h>
int n = 5;
int arr[5];
void print()
for (int i = 0; i < n; i++)
printf("%d :- %d\n", i, arr[i]);
max-programming /
Last active March 21, 2023 09:38
My Practical Files for Java
import java.util.Scanner;
class Trip {
String source, destination;
String startDate;
int noOfDays;
Trip(String s, String d, String sd, int nod) {
source = s;
destination = d;