Skip to content

Instantly share code, notes, and snippets.

View BhJaipal's full-sized avatar
😄
Free

Jaipal001 BhJaipal

😄
Free
View GitHub Profile
@BhJaipal
BhJaipal / Hello.asm
Created September 21, 2023 01:50
HelloWorld in x86 assembly
section .text
global _start
section .data
msg db 'Hello, world!',0xa ;our dear string
len equ $ - msg ;length of our dear string
section .text
; linker puts the entry point here:
@BhJaipal
BhJaipal / Stack.py
Last active June 24, 2023 08:45
Stack
class Stack:
def __init__(self):
self.list= list()
def push(self, element):
self.list.append(element)
def pushMany(self, *args):
self.list.extend(args)
def pop(self):
if (len(self.list) == 0):
print("Cannot pop element, stack is empty")
@BhJaipal
BhJaipal / Kivycode.md
Last active April 2, 2023 10:47
Kivy Use

Kivy use

First import nessary things like

from kivy.lang import Builder
from kivymd.app import MDApp
from kivymd.uix.screen import MDScreen
@BhJaipal
BhJaipal / PrimeNumber.cs
Last active March 18, 2023 11:16
Prime Numbers
using System;
public class PrimeNumber{
public static void main(String[] args) {
Console.WriteLine("Enter limit: ");
primeNums(int.Parse(Console.ReadLine()));
}
static void primeNums(int num) {
int zeros;
for (int i= 2; i<= num; i++) {
@BhJaipal
BhJaipal / main.py
Created March 16, 2023 15:58
Python-Module
import math
"""
Use of New_Math class
Use of round() function
It round off value to its nearest integer in a limited range
>>> from Lib.main import *
>>> new_math.round(8.9)
9