I hereby claim:
- I am taiyoslime on github.
- I am taiyoslime (https://keybase.io/taiyoslime) on keybase.
- I have a public key whose fingerprint is 8685 988A C7DC 78EB A3F3 C255 7574 D817 62BF B92A
To claim this, I am signing this object:
#!/usr/bin/osascript -l JavaScript | |
app = Application("com.apple.iTunes"); | |
name = app.currentTrack().name() | |
artist = app.currentTrack().artist() | |
album = app.currentTrack().album() | |
duration = app.currentTrack().duration() | |
sec = duration / 60 | 0 | |
min = duration % 60 | 0 | |
if(min < 10) min = "0" + min | |
result = `${name} - ${artist}/${album} [${sec}:${min}]` |
import requests | |
import json | |
BASE_URL = "http://172.24.0.11/" | |
BASE_DEFENSE_URL = BASE_URL + "defense/" | |
TEAM_NAME = "TSG" | |
TEAM_IP_ADDRESS = "192.168.***.***" | |
with open("defense", "r") as f: |
class Node | |
attr_accessor :name, :prob, :children, :code | |
def initialize name, prob, children = [], code = nil | |
@name = name | |
@prob = prob | |
@children = children | |
@code = code | |
end |
I hereby claim:
To claim this, I am signing this object:
class Eca | |
attr_reader :cells | |
def initialize(role, size = 200) | |
@role = role | |
@cells = Array.new(size, 0) | |
raise if role < 0 || role > 255 | |
end | |
def set(f, offset = nil) | |
str = f.is_a?(Integer) ? f.to_s(2) : f.is_a?(String) ? f : nil |
module CPU(CK, RST, IA, ID, DA, DD, RW); | |
input CK, RST; | |
input [15:0] ID; | |
output RW; | |
output [15:0] IA, DA; | |
inout [15:0] DD; | |
reg FLAG, RW; | |
reg [1:0] STAGE; |
# $ ruby reg.rb < CoreMark_RV32I.trace | |
reg = [""] * 32 | |
reg[0] = "0x00000000" | |
while inst = gets | |
lv, rv = inst.split("#") | |
pc = lv.split(" ")[0][..-2] | |
# break if pc == "0xXXXX" | |
unless rv.include?("no destination") | |
rd, _, val, *_ = rv.split(" ") |
import sys | |
def call_is_correct(ch, index): | |
gdb.execute(f"r '{'*' * 32}'") | |
gdb.execute(f"set $rdi={ch}") | |
gdb.execute(f"set $rsi={index}") | |
gdb.execute("j *check+90") # just skip `fork` and so on | |
gdb.execute("fin") | |
res = gdb.execute("p $rax", to_string=True) | |
return int(res.split(" ")[2], 16) |