Skip to content

Instantly share code, notes, and snippets.

@NeuralCoder3
NeuralCoder3 / christmas.ml
Created January 15, 2023 17:27
A small raymarcher written in OCaml from scratch
(*
* * * * * *
* * * * * *
* /\ /\ * /\ * /\
/~^\* /~^\ * /^~\ /^~\ *
* /~^~^\/~^~^\ /^~^~\ '"||"'
/~^~^~^\"||""' /^~^~^~\
'"'"||"'"' '"'"||"'"'
@NeuralCoder3
NeuralCoder3 / replace.py
Created January 6, 2023 23:34
Use replacement
from asyncore import file_dispatcher
import os
import sys
import optparse
import re
# call python use_replace.py main_file output_file
# use positional arguments
optparser = optparse.OptionParser()