Skip to content

Instantly share code, notes, and snippets.

View althonos's full-sized avatar
🧬
Writing Cython bindings to every single bioinformatics tool out there

Martin Larralde althonos

🧬
Writing Cython bindings to every single bioinformatics tool out there
View GitHub Profile
@VitaSmith
VitaSmith / sqlite3.c
Created October 29, 2017 00:19
An implemention of a full SQLite VFS for Sony PS Vita, based on xyzz's original work
/*
Vita SQLite handling function for R/W
From https://github.com/henkaku/offline-installer/blob/master/src/vita_sqlite.c
Copyright (C) 2016 xyzz
Copyright (C) 2017 VitaSmith
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@shepmaster
shepmaster / README.md
Last active March 11, 2020 05:21 — forked from kelcecil/README.md
Implementation of binary search tree in OCaml and Rust (modeled after the OCaml solution).

Here's two implementations of a binary search tree in OCaml and Rust. The Rust version was written to deliberately look as close to the OCaml as possible (and it'd get pretty close if I used match instead of OCaml's variants). I'm pretty sure my OCaml implementation is idiomatic, and I'd like some advice on what steps I'd probably take to make the Rust example more idiomatic. My objective is to talk about how close the examples can be to each other as well as how different the examples can be (hopefully demonstrating strengths for both.)

Any other thoughts or ideas are also helpful and super appreciated!

@kseo
kseo / recon.ml
Last active March 28, 2024 14:41
A Hindley-Milner type inference implementation in OCaml
#! /usr/bin/env ocamlscript
Ocaml.ocamlflags := ["-thread"];
Ocaml.packs := [ "core" ]
--
open Core.Std
type term =
| Ident of string
| Lambda of string * term
| Apply of term * term