Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

fate0

🎯
Focusing
View GitHub Profile
@fate0
fate0 / node2ruby.c
Last active Dec 20, 2019
turn ruby ast to ruby source code
View node2ruby.c
/**********************************************************************
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 Aug 26, 2020
onmyoji: test
View pymarshal.py
import types
import cStringIO
TYPE_NULL = '0'
TYPE_NONE = 'N'
TYPE_FALSE = 'F'
TYPE_TRUE = 'T'
TYPE_STOPITER = 'S'
TYPE_ELLIPSIS = '.'
TYPE_INT = 'i'
You can’t perform that action at this time.