Skip to content

Instantly share code, notes, and snippets.

View porglezomp's full-sized avatar
💖
GITHUB DROP ICE

Cassie Jones porglezomp

💖
GITHUB DROP ICE
View GitHub Profile
@porglezomp
porglezomp / README.md
Last active August 29, 2015 14:05
Do parametric animation in Unity3d, inspired by UIView animation in iOS

How to use this

Installation

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

Animating Objects

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
porglezomp / .gitignore
Last active January 2, 2016 18:39
Doing my math homework using libgraphicsmath
Math
.DS_Store
@porglezomp
porglezomp / Rocket
Last active January 4, 2016 09:19
A little diagram of a rocket for Strategic Offense Initiative
[1] warhead
1
[2] computer
2
[3] booster -3- [4] control -4- [5] booster
5
[6] fuel
|6|
[7] coupler
|7|
macro_rules! parsable_enum {
($(#[$attrs:meta])* enum $name:ident { $($member:ident),*}) =>
(parsable_enum! { $(#[$attrs])* enum $name { $($member),* ,}});
($(#[$attrs:meta])* enum $name:ident { $($member:ident),* , }) => {
$(#[$attrs])*
pub enum $name {
$($member),+
}
use std::str::FromStr;

Keybase proof

I hereby claim:

  • I am porglezomp on github.
  • I am porglezomp (https://keybase.io/porglezomp) on keybase.
  • I have a public key ASBz_m2oruQIDIMJM-2Sg8gOiGO0o8uCWbG1hP-ti7F4_wo

To claim this, I am signing this object:

(let! *width* 128)
(let! *height* 128)
(struct cplx
real imag)
(let! real cplx/real)
(let! imag cplx/imag)
(defn (c/+ a b)
<html>
<head>
<meta charset="utf8"/>
<title>Driver Station</title>
</head>
<body>
<img src="http://10.10.76.17:5807/?action=stream" width="480" height="360" class="flip"/>
<img src="http://10.10.76.19:5809/?action=stream" width="480" height="360" class="flip"/>
<style>.flip { transform: rotate(180deg); }</style>
</body>
@porglezomp
porglezomp / philosophers.c
Created March 19, 2017 17:51
Socrates and Plato sit down for dinner
/* Compile as gcc philosophers.c -pthread */
#include <stdio.h>
#include <pthread.h>
#include <unistd.h>
pthread_mutex_t fork_ = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t knife = PTHREAD_MUTEX_INITIALIZER;
void *socrates(void *nothing) {
User Kanye Anime Comment
SufjanStevens Late Registration good
joaquin 808s bad
pedroteixeira MBDTF good
Tahloolah MBDTF good
ligeti MBDTF N/A Q2) My Beautiful Dark Twisted Fantasy
Ziven001 Yeezus good
CrimeFuck College Dropout good
shaded_fox Late Registration good
Cian 808s good