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 August 31, 2023 02:50
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 August 11, 2023 08:55
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'