Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

ehza ehzawad

🎯
Focusing
View GitHub Profile
View reverse.asm
.model small
.stack 100h
.data
.code
main proc
;inPUTING VALUE
mov ah,1
View string.asm
.model small
.stack 100h
.data
text db "hello world $$"
.code
main proc
mov bx, @data
mov ds, bx
View string_print_madam.asm
.model small
.stack 100h
.data
a db ?
b db 101
c dw 'STRING DOLLAR $'
.code
main proc
mov ax, @data
View addition.asm
.model small
.stack 100h
;VRIABLE DEC LARATION PART
.data
a db ?
b db ?
c dw "Enter 1st Input:$"
d dw "Enter 2nd Input:$"
e dw "Display:$"
View SQL.sql
1. select Customer_street from customer where Customer_name in(select Customer_name from borrower where Loan_number in(select loan_number from loan));
2. select amount from loan where amount >(select amount from loan where Loan_number = 'L-15');
3. SELECT CUSTOMER_NAME,CUSTOMER_CITY FROM CUSTOMER WHERE CUSTOMER_NAME IN (SELECT CUSTOMER_NAME FROM BORROWER WHERE LOAN_NUMBER IN(SELECT LOAN_NUMBER FROM LOAN WHERE BRANCH_NAME='Downtown'));
4.SELECT CUSTOMER_NAME,CUSTOMER_CITY FROM CUSTOMER WHERE CUSTOMER_NAME IN (SELECT CUSTOMER_NAME FROM BORROWER);
5. SELECT CUSTOMER_NAME FROM BORROWER WHERE LOAN_NUMBER IN(SELECT LOAN_NUMBER FROM LOAN WHERE BRANCH_NAME IN(SELECT BRANCH_NAME FROM LOAN WHERE LOAN_NUMBER IN (SELECT LOAN_NUMBER FROM BORROWER WHERE CUSTOMER_NAME= 'Adams')));
View jump.asm
.model small
.stack 100h
.data
a db ?
.code
main proc
mov ax, @data
View switch_in_asm.asm
.model small
.stack 100h
.data
a db ?
c dw 'you are in level $'
d dw 'restrictin ...you are in server room $'
e dw 'Invalid level entered $'
.code
View improved_switc.asm
.model small
.stack 100h
.data
a db ?
c dw 'you are in level $'
d dw 'restrictin ...you are in server room $'
e dw 'Invalid level entered $'
.code
View buggy_string.cpp
#include <iostream>
#include <cstdlib>
// prototype in function
char* myStrCpy(char* dest, const char* src);
bool matching(const char* str1, const char* str2);
static char* myStrCat(char* buffer, const char* readOnlyStr);
int positionIndex(const char* fullStr, const char* portionString);
static const char* myStrStr(const char* s1, const char* s2);
View plug.vim
call plug#begin()
Plug 'tpope/vim-sensible'
Plug 'Valloric/YouCompleteMe', { 'do': './install.py --clang-completer' }
function! BuildYCM(info)
if a:info.status == 'installed' || a:info.force
!./install.sh --clang-completer
endif
endfunction
Plug 'Valloric/YouCompleteMe', { 'do': function('BuildYCM') }
You can’t perform that action at this time.