Skip to content

Instantly share code, notes, and snippets.

View NilsIrl's full-sized avatar
🤔
Rewriting git history

Nils NilsIrl

🤔
Rewriting git history
View GitHub Profile
fn main() {
let s = r##"fn main() {
let s = ?;
let s = s.replacen("?", &format!("r{}\"{}\"{}", concat!("#", "#"), s, concat!("#", "#")), 1);
println!("{}", s);
}"##;
let s = s.replacen("?", &format!("r{}\"{}\"{}", concat!("#", "#"), s, concat!("#", "#")), 1);
"""
main.py
That's it this is the entire API.
"""
from flask import Flask, jsonify
import markovify
app = Flask(__name__)
with open("nietzche.txt") as f:
text = f.read()
#include <fcntl.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
void fdprintf(int fd, const char *fmt, ...)
{
/* Guess we need no more than 100 bytes. */
@NilsIrl
NilsIrl / expand.rs
Created December 22, 2019 10:41
What compile_time_serde::deserialize_json!() expands to
::staticvec::StaticVec::new_from_const_array([Game{title: "Blindspot",
tools:
Some(::staticvec::StaticVec::new_from_const_array(["Godot",
"ffmpeg",
"audacity",
"staticvec::staticvec![sox](http://sox.sourceforge.net/)"])),
platforms: None,
authors:
Some(::staticvec::StaticVec::new_from_const_array([Author{name: