Skip to content

Instantly share code, notes, and snippets.

View abeppu's full-sized avatar

Aaron Beppu abeppu

View GitHub Profile
@abeppu
abeppu / ExprMatchingDemo.scala
Last active December 28, 2023 18:28
scala 3 reference example of HOAS pattern matching seems broken
package exprmatch
object ExprMatchingDemo extends App {
ExprMatchingPlayground.foo()
}

Keybase proof

I hereby claim:

  • I am abeppu on github.
  • I am abeppu (https://keybase.io/abeppu) on keybase.
  • I have a public key ASCk5nUg8DNGOx7Y_Br1Gzbq-q1F4LlZ7XL8cSAnGonalQo

To claim this, I am signing this object:

@abeppu
abeppu / test markdown
Last active August 29, 2015 14:05
test markdown
some para
1. entry1
2. entry2
some para
1. entry1
2. entry2
@abeppu
abeppu / feelbetter.js
Last active February 6, 2021 19:06
Implementation of @FeelBetterBot
var Twit = require("twit");
var config = require('./oauthconfig');
console.log("config:");
console.log(config);
var T = new Twit({
consumer_key: config.consumer_key,
consumer_secret: config.consumer_secret,
access_token: config.access_token,
@abeppu
abeppu / index.html
Last active April 24, 2023 13:19
candlestick charts using d3
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.25.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.time.js?1.25.0"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
</head>
<body>
<div id="chart"></div>
@abeppu
abeppu / automata.py
Created January 16, 2011 02:26
makes pretty pictures of outputs from 1D cellular automata
#!/usr/bin/python
import random
import sys
def generateLine(width):
return random.getrandbits(width)
def bitlength(n):
return len(bin(n)) - 2