Skip to content

Instantly share code, notes, and snippets.

View theahmadzai's full-sized avatar
🐞
-_-

Muhammad Javed theahmadzai

🐞
-_-
View GitHub Profile
package computergraphics;
import java.util.ArrayList;
public class Test {
public static void main(String[] args) {
validate("int dd,b, ZA,A, A, ddd,ac,a;");
}
@theahmadzai
theahmadzai / clip.java
Last active July 5, 2020 17:51
Assignment 11 CG
package computergraphics;
import javax.imageio.ImageIO;
import javax.swing.JButton;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.Color;
import java.awt.Point;
using System;
using System.Collections.Generic;
namespace TestApp {
class Program {
static Dictionary<string, string> users = new Dictionary<string, string>();
static void Main(string[] args) {
Input20Users();
{
"editor.cursorBlinking": "phase",
"editor.formatOnSave": true,
"editor.renderLineHighlight": "gutter",
"editor.matchBrackets": "near",
"editor.occurrencesHighlight": true,
"editor.minimap.enabled": false,
"editor.fontFamily": "'Fira Code', Consolas, 'Courier New', monospace",
"editor.fontSize": 16,
"editor.fontLigatures": true,
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
namespace BlockChain
{
public interface IBlock
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(int argc, char* argv[])
{
clock_t start, end;
double cpu_time_used;
start = clock();
import java.util.Arrays;
class MinHeap {
private int capacity = 10;
private int size = 0;
int[] items = new int[capacity];
private int getLeftChildIndex(int parentIndex) {
return 2 * parentIndex + 1;
#include <stdlib.h>
#include <windows.h>
static TCHAR szClassName[] = L"Application";
static TCHAR szWindowName[] = L"Title of the application";
HINSTANCE hInst;
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
@theahmadzai
theahmadzai / gcc.asm
Last active May 16, 2019 16:02
GCC CALLING CONVENTION
.MODEL SMALL
.STACK 100H
.DATA
.CODE
PROC MAIN
MOV AX, @DATA
MOV DS, AX
import java.util.ArrayList;
class DogEvent {
public String message;
}
@FunctionalInterface
interface DogObserver {
void update(DogEvent event);