Skip to content

Instantly share code, notes, and snippets.

View catilac's full-sized avatar
🌞

Chirag Davé catilac

🌞
View GitHub Profile
@catilac
catilac / boot_sector.asm
Created May 29, 2020 14:02
Bootsector that prints hex
;
; String printing boot sector
;
[org 0x7c00] ; Tell the assembler where to load code
mov dx, 0x1fb6 ; store value to print in dx
call print_hex ; call the function
jmp $ ; hang
function chat() {
buttons = document
.querySelectorAll('.conversations-quick-replies__reply button');
if (buttons) {
var idx = Math.floor(Math.random() * Math.floor(buttons.length));
buttons[idx].click();
}
}
function startChat(interval) {
func makeDict<T: Hashable>(keys: [T], vals: [AnyObject]) -> [T:AnyObject] {
var dict : [T:AnyObject] = [:]
for (i, key) in enumerate(keys) {
dict[key] = vals[i]
}
return dict
}