Skip to content

Instantly share code, notes, and snippets.

View jmanuel1's full-sized avatar
:atom:
tip tap on the keyboard

Jason Manuel jmanuel1

:atom:
tip tap on the keyboard
View GitHub Profile
@jmanuel1
jmanuel1 / Issue.idr
Created December 27, 2021 22:43
Idris 2 0.5.1 CRLF issue
module Issue
{- comment added to make it clear which lines are being displayed -}
fun : () -> Int
fun () = True
@jmanuel1
jmanuel1 / convert.js
Created July 9, 2020 00:42
Convert your schema.rocks notes to org files!
{
function documentToOrg(document) {
const title = document.querySelector("#document_title").value;
let orgFile = `#+TITLE: ${title}\n\n`;
const bullets = document.querySelector("#root_node_children");
function bulletsToOrg(bullets, level = 1) {
let orgBullets = "";
@jmanuel1
jmanuel1 / writeup.md
Created July 8, 2019 21:01 — forked from edmundsmith/writeup.md
Method for Emulating Higher-Kinded Types in Rust

Method for Emulating Higher-Kinded Types in Rust

Intro

I've been fiddling about with an idea lately, looking at how higher-kinded types can be represented in such a way that we can reason with them in Rust here and now, without having to wait a couple years for what would be a significant change to the language and compiler.

There have been multiple discussions on introducing higher-ranked polymorphism into Rust, using Haskell-style Higher-Kinded Types (HKTs) or Scala-looking Generalised Associated Types (GATs). The benefit of higher-ranked polymorphism is to allow higher-level, richer abstractions and pattern expression than just the rank-1 polymorphism we have today.

As an example, currently we can express this type:

@jmanuel1
jmanuel1 / .hyper.js
Created January 17, 2019 05:29
My Hyper config
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
fontFamily: 'Consolas',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',

A header,。?

An,。?other

Keybase proof

I hereby claim:

  • I am jmanuel1 on github.
  • I am mccabesimplicity (https://keybase.io/mccabesimplicity) on keybase.
  • I have a public key whose fingerprint is 5AFB 9D57 EBBD 28D0 1ED2 79BE 0914 05EF CE07 B74C

To claim this, I am signing this object:

@jmanuel1
jmanuel1 / issue-69.md
Created August 2, 2015 21:08
doctoc-issue-69.md