Skip to content

Instantly share code, notes, and snippets.

View fate0's full-sized avatar
🎯
Focusing

fate0

🎯
Focusing
View GitHub Profile
@fate0
fate0 / node2ruby.c
Last active June 6, 2024 01:30
turn ruby ast to ruby source code
/**********************************************************************
node2ruby.c - ruby node tree to ruby source code
Copyright (C) 2017 fate0
**********************************************************************/
#include "ruby/ruby.h"
#include "vm_core.h"
@fate0
fate0 / pymarshal.py
Last active September 17, 2024 07:29
onmyoji: test
import types
import cStringIO
TYPE_NULL = '0'
TYPE_NONE = 'N'
TYPE_FALSE = 'F'
TYPE_TRUE = 'T'
TYPE_STOPITER = 'S'
TYPE_ELLIPSIS = '.'
TYPE_INT = 'i'