node
で取得できるフィールドは https://idobata.io/api で確認できます。
{
viewer {
messages(last: 25) {
x-env: &env | |
- PROC_INPUT=/var/run/sample/proc-in | |
- PROC_OUTPUT=/var/run/sample/proc-out | |
- PROC_LOCK=/var/run/sample/proc.lock | |
volumes: | |
ipc: | |
services: | |
web: |
def doit(change:, doors: [1, 2, 3]) | |
jackpot = doors.sample | |
chosen = doors.sample | |
rest = (doors - [chosen]) | |
drop = (rest - [jackpot]).first | |
finally_chosen = | |
if change | |
(rest - [drop]).first | |
else |
node
で取得できるフィールドは https://idobata.io/api で確認できます。
{
viewer {
messages(last: 25) {
#N canvas 1382 583 859 639 10; | |
#X obj 90 236 osc~ 400; | |
#X obj 90 258 *~; | |
#X obj 90 280 *~ 0.1; | |
#X obj 90 362 dac~; | |
#X obj 294 210 line~; | |
#X obj 294 131 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 | |
1; | |
#X msg 294 188 \$1 100; | |
#X obj 294 109 r btn; |
# Copyright 1999-2016 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Id$ | |
EAPI=5 | |
DESCRIPTION="Fast, reliable, and secure dependency management. https://yarnpkg.com" | |
HOMEPAGE="https://yarnpkg.com/" | |
LICENSE="BSD" | |
KEYWORDS="amd64" | |
SRC_URI="https://github.com/yarnpkg/yarn/releases/download/v${PVR}/yarn-v${PVR}.tar.gz" |
# 1 instruction | |
puts RubyVM::InstructionSequence.compile(%('hi')).disasm | |
# == disasm: #<ISeq:<compiled>@<compiled>>================================ | |
# 0000 trace 1 ( 1) | |
# 0002 putstring "hi" | |
# 0004 leave | |
# 1 instruction | |
puts RubyVM::InstructionSequence.compile(%('hi'.freeze)).disasm | |
# == disasm: #<ISeq:<compiled>@<compiled>>================================ |
File.write 'font.c', "const UINTN[][16] = {\n" + (Array.new(31) + File.read('u_vga16.bdf').split(/\nENCODING\s+/).tap(&:shift))[32..126].map {|char| " {\n" + char.match(/BITMAP[0-9A-F\n]+ENDCHAR/)[0].scan(/\n[0-9A-F]{2}+/).map(&:strip).map {|e| r = e.each_char.map {|a| "%04d" % Integer("0x#{a}").to_s(2) }.join; " 0b#{r}" }.join(",\n") + "\n }" }.join(",\n") + "\n};" |
all: bootable.bin | |
bootable.bin: | |
nasm boot.s -o $@ | |
clean: | |
rm -rf *.bin | |
run: bootable.bin | |
qemu-system-x86_64 -monitor stdio bootable.bin |
OBJECTS = func.o main.o | |
CC = gcc | |
CFLAGS = -std=c11 -m64 -Wall -Wextra -Werror -c | |
AS = nasm | |
ASFLAGS = -f elf64 | |
all: $(OBJECTS) | |
gcc -m64 $(OBJECTS) -o main | |
run: all |
OBJECTS = func.o main.o | |
CC = gcc | |
CFLAGS = -std=c11 -m32 -Wall -Wextra -Werror -c | |
AS = nasm | |
ASFLAGS = -f elf | |
all: $(OBJECTS) | |
gcc -m32 $(OBJECTS) -o main | |
run: all |