Skip to content

Instantly share code, notes, and snippets.

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

Usman S. (Max Programming) max-programming

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

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

View challenge.md

👋 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
SELECT
student_id
FROM
studies
WHERE
subject_id NOT IN (101, 103, 105)
SELECT
student_id
FROM
@max-programming
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
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 https://developers.google.com/web/tools/workbox/modules
// 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
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
MOV B, A
LDA 2001H
MOV C, A
MVI A, 00H
LOOP: ADD C
@max-programming
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">
<head>
<title>Railway Ticket Booking</title>
<style>
* {
font-family: sans-serif;
}
</style>
View express-ts-steps.md

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
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
max-programming / Practical10.java
Last active March 21, 2023 09:38
My Practical Files for Java
View Practical10.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;