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 / PRAC6.asm
Last active December 31, 2022 18:34
All of my MI Assembly Codes
; 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
<!-- 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>
@max-programming
max-programming / Practical10.java
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;
@max-programming
max-programming / practical_1.c
Last active February 20, 2023 04:14
DFS All Practicals
#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]);
@noygal
noygal / Windows Subsystem for Linux version 1 and 2 (WSL) - node install guide.md
Last active February 21, 2024 23:17
Installing node via windows subsystem for linux

Windows 10 version 2004 - Installing Node.js on Windows Subsystem for Linux (WSL/WSL2)

UPDATE (Fall 2020): This gist is an updated version to the Windows 10 Fall Creators Update - Installing Node.js on Windows Subsystem for Linux (WSL) guide, I usually just keep here notes, configuration or short guides for personal use, it was nice to know it also helps other ppl, I hope this one too.

Windows updated windows subsystem for linux to version 2, as the F.A.Q stated you can still use WSL version 1 side by side with version 2. I'm not sure about existing WSL machines surviving the upgrade process, but as always backup and 🤞. NOTE: WSL version 1 is not replace/deprecated, and there ar

var File = function(url, object){
File.list = Array.isArray(File.list)? File.list : [];
File.progress = File.progress || 0;
this.progress = 0;
this.object = object;
this.url = url;
};
File.indexOf = function(term){
for(var index in File.list){
@candycode
candycode / image-arraybuffer.js
Created March 7, 2014 15:24
Create a jpg image from ArrayBuffer data
// Simulate a call to Dropbox or other service that can
// return an image as an ArrayBuffer.
var xhr = new XMLHttpRequest();
// Use JSFiddle logo as a sample image to avoid complicating
// this example with cross-domain issues.
xhr.open( "GET", "http://fiddle.jshell.net/img/logo.png", true );
// Ask for the result as an ArrayBuffer.
xhr.responseType = "arraybuffer";
@andyferra
andyferra / github.css
Created April 30, 2012 02:11
Github Markdown CSS - for Markdown Editor Preview
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {