Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Working

Kei Tachikawa Aeres-u99

💭
Working
View GitHub Profile
@Aeres-u99
Aeres-u99 / table.mkdn
Created Jul 23, 2020 — forked from ngs/table.mkdn
Unicode character table
View table.mkdn

A

Description Entity Preview
A With Acute, Latin Capital Letter Á Á
A With Acute, Latin Small Letter á á
A With Breve, Latin Small Letter ă ă
A With Caron, Latin Small Letter ǎ ǎ
A With Circumflex, Latin Capital Letter  Â
A With Circumflex, Latin Small Letter â â
View Ubuntu
sudo sed -i -- 's/#deb-src/deb-src/g' /etc/apt/sources.list && sudo sed -i -- 's/# deb-src/deb-src/g' /etc/apt/sources.list
@Aeres-u99
Aeres-u99 / Str_out.asm
Last active Jul 24, 2018
The booting code and printing code
View Str_out.asm
;
;Printing function
;
pusha ; push the content of register to save it properly!!
str_out: mov ah,0x0e ;Interrupt requires 0x0e
printing: mov al, [bx] ;load the start of string into bx
int 0x10 ;call Interrupt 0x10,which upon having 0x0e in ah prints the char
add bx, 0x01 ;increment bx for the next character
cmp al,0 ; see if its zero, if yes that means the string has ended
jg printing ; jump on greater to prinitng
View pythoncode.py
import math
class Shape(object):
def __init__(self,base,side):
self.base=base
self.side=side
def area(self):
return self.base*self.side
def perimeter(self):
return 2*(self.base+self.side)