This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; 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 |