Skip to content

Instantly share code, notes, and snippets.

GitHub seems like the wrong place to put a status?

Cassie Jones porglezomp

GitHub seems like the wrong place to put a status?
Block or report user

Report or block porglezomp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
porglezomp /
Last active Aug 29, 2015
Do parametric animation in Unity3d, inspired by UIView animation in iOS

How to use this


  1. Copy the PAnim.cs class into your Unity3d project
  2. You're done!

Animating Objects

View fib.em
fib ^n = {
fib ^n ^a ^b = {
if (n <= 0) ^!( return a )
if (n == 1) ^!( return b )
fib (n - 1) b (a + b)
fib n 0 1
porglezomp / .gitignore
Last active Jan 2, 2016
Doing my math homework using libgraphicsmath
View .gitignore
porglezomp / Rocket
Last active Jan 4, 2016
A little diagram of a rocket for Strategic Offense Initiative
View Rocket
[1] warhead
[2] computer
[3] booster -3- [4] control -4- [5] booster
[6] fuel
[7] coupler
macro_rules! parsable_enum {
($(#[$attrs:meta])* enum $name:ident { $($member:ident),*}) =>
(parsable_enum! { $(#[$attrs])* enum $name { $($member),* ,}});
($(#[$attrs:meta])* enum $name:ident { $($member:ident),* , }) => {
pub enum $name {
use std::str::FromStr;

Keybase proof

I hereby claim:

  • I am porglezomp on github.
  • I am porglezomp ( on keybase.
  • I have a public key ASBz_m2oruQIDIMJM-2Sg8gOiGO0o8uCWbG1hP-ti7F4_wo

To claim this, I am signing this object:

porglezomp /
Created Oct 27, 2016
It's possible to have an extremely simple standard-conformant JSON parser!
# RFC 7159 § 9
# "An implementation may set limits on the size of texts that it accepts."
def parse_json(text):
if len(text) != 1:
raise ValueError("Only accepts single character JSON values")
return int(text[0])
porglezomp / exception.c
Last active Dec 12, 2016
Exception handling in C with setjmp and longjmp!
View exception.c
#include <iso646.h>
#include <setjmp.h>
#include <stdio.h>
// Exception Macros
int _exn_handler_idx = 0;
jmp_buf _exn_handlers[1024];
View mandelbrot.laz
(let! *width* 128)
(let! *height* 128)
(struct cplx
real imag)
(let! real cplx/real)
(let! imag cplx/imag)
(defn (c/+ a b)
View driverstation.html
<meta charset="utf8"/>
<title>Driver Station</title>
<img src="" width="480" height="360" class="flip"/>
<img src="" width="480" height="360" class="flip"/>
<style>.flip { transform: rotate(180deg); }</style>
You can’t perform that action at this time.