Skip to content

Instantly share code, notes, and snippets.

@ten986
ten986 / tryjsil.cs
Created December 12, 2017 16:07
My Gist
using System;
using JSIL;
using JSIL.Meta;
public static class Program {
public static int x = 10;
public static int y = 20;
public static void Main () {
dynamic document = Builtins.Global["document"];
@ten986
ten986 / befunge93topicfunge.py
Created June 21, 2019 09:17
befunge93のコードをpicfungeに変換するコード。スタックを使いすぎたりするとバグる。
from PIL import Image, ImageDraw, ImageFont
import sys
im = Image.new("RGB", (512, 512), (0, 0, 0))
draw = ImageDraw.Draw(im)
lines = sys.stdin.readlines()
maxi = 0
maxj = 0
🍚⬇️🍚0️⃣1️⃣➕🔟✖️1️⃣➕🔟✖️0️⃣➕🔟✖️1️⃣➕🔟✖️5️⃣➕0️⃣6️⃣➕🔟✖️5️⃣➕🔟✖️0️⃣➕🔟✖️3️⃣➕🔟✖️9️⃣➕2️⃣💌0️⃣1️⃣➕🔟✖️1️⃣➕🔟✖️0️⃣➕🔟✖️1️⃣➕🔟✖️3️⃣➕0️⃣6️⃣➕🔟✖️5️⃣➕🔟✖️0️⃣➕🔟✖️3️⃣➕🔟✖️9️⃣➕2️⃣💌📧0️⃣1️⃣➕🔟✖️0️⃣➕🔟✖️1️⃣➕🔟✖️4️⃣➕🔟✖️5️⃣➕0️⃣6️⃣➕🔟✖️5️⃣➕🔟✖️0️⃣➕🔟✖️3️⃣➕🔟✖️9️⃣➕2️⃣💌0️⃣5️⃣➕🔟✖️5️⃣➕🔟✖️3️⃣➕🔟✖️5️⃣➕🔟✖️7️⃣➕0️⃣5️⃣➕🔟✖️6️⃣➕🔟✖️5️⃣➕🔟✖️5️⃣➕🔟✖️2️⃣➕2️⃣💌0️⃣5️⃣➕🔟✖️5️⃣➕🔟✖️3️⃣➕🔟✖️5️⃣➕🔟✖️7️⃣➕0️⃣5️⃣➕🔟✖️6️⃣➕🔟✖️5️⃣➕🔟✖️2️⃣➕🔟✖️8️⃣➕2️⃣💌0️⃣5️⃣➕🔟✖️5️⃣➕🔟✖️3️⃣➕🔟✖️5️⃣➕🔟✖️7️⃣➕0️⃣5️⃣➕🔟✖️6️⃣➕🔟✖️4️⃣➕🔟✖️6️⃣➕🔟✖️0️⃣➕2️⃣💌0️⃣5️⃣➕🔟✖️5️⃣➕🔟✖️3️⃣➕🔟✖️5️⃣➕🔟✖️7️⃣➕0️⃣5️⃣➕🔟✖️6️⃣➕🔟✖️4️⃣➕🔟✖️6️⃣➕🔟✖️9️⃣➕2️⃣💌0️⃣5️⃣➕🔟✖️5️⃣➕🔟✖️3️⃣➕🔟✖️5️⃣➕🔟✖️7️⃣➕0️⃣5️⃣➕🔟✖️6️⃣➕🔟✖️5️⃣➕🔟✖️5️⃣➕🔟✖️6️⃣➕2️⃣💌0️⃣1️⃣➕🔟✖️1️⃣➕🔟✖️0️⃣➕🔟✖️1️⃣➕🔟✖️5️⃣➕0️⃣6️⃣➕🔟✖️5️⃣➕🔟✖️0️⃣➕🔟✖️3️⃣➕🔟✖️9️⃣➕2️⃣💌📧0️⃣1️⃣➕🔟✖️1️⃣➕🔟✖️0️⃣➕🔟✖️1️⃣➕🔟✖️5️⃣➕0️⃣6️⃣➕🔟✖️5️⃣➕🔟✖️0️⃣➕🔟✖️3️⃣➕🔟✖️9️⃣➕2️⃣💌0️⃣1️⃣➕🔟✖️1️⃣➕🔟✖️0️⃣➕🔟✖️3️⃣➕🔟✖️6️⃣➕1️⃣💌0️⃣1️⃣➕🔟✖️1️⃣➕🔟✖️0️⃣➕🔟✖️3️⃣➕🔟✖️6️⃣➕1️⃣💌0️⃣1️⃣➕🔟✖️1️⃣➕🔟✖️0️⃣➕🔟✖️3️⃣➕🔟✖️6️⃣➕1️⃣💌0️⃣5️⃣➕🔟✖️5️⃣➕🔟✖️3️⃣➕🔟✖️5️⃣➕🔟✖️7️⃣➕0️⃣5️⃣➕🔟✖️6️⃣➕🔟✖️8️⃣➕🔟✖️9️⃣➕🔟✖️9️⃣➕2️⃣💌0️⃣5️⃣➕🔟✖️5️⃣➕🔟✖️3️⃣➕🔟✖️5️⃣➕🔟✖️7️⃣➕0️⃣5️⃣➕🔟✖️6️⃣➕🔟✖️5️⃣➕🔟✖️5️⃣➕🔟✖️2️⃣➕2️⃣💌0️⃣1️⃣➕🔟✖️1️⃣
@ten986
ten986 / converter.cpp
Created December 24, 2023 15:06
2023年アドベントカレンダーで使用したMalbolgeの変換機です
#include <bits/stdc++.h>
using namespace std;
const std::string opcode_decode_table =
R"(+b(29e*j1VMEKLyC})8&m#~W>qxdRp0wkrUo[D7,XTcA"lI.v%{gJh4G\-=O@5`_3i<?Z';FNQuY]szf$!BS/|t:Pn6^Ha)";
const std::string op = R"(ji*p</v)";
int main()
{
int address = 0;
@ten986
ten986 / malbolge_input
Created December 24, 2023 15:08
2023年アドベントカレンダーで使用した、Maloblge の変換機に入れる用のコードです
11
ip
13
o 65
0
↓使うメモリの初期値
#
11
oo<opj