Skip to content

Instantly share code, notes, and snippets.


Ted Yin Determinant

Block or report user

Report or block Determinant

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
Determinant / fft.c
Created Jul 11, 2014
Direct DFT and Cooley–Tukey FFT Algorithm C Implementation
View fft.c
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
typedef struct Comp {
/* comp of the form: a + bi */
double a, b;
} Comp;
View gist:7ec0400e9be60364f94e

How to Configure AppArmor on Ubuntu

Author: Ted Yin <>
  • AppArmor is a Mandatory Access Control (MAC) system which is a kernel (LSM) enhancement to confine programs to a limited set of resources. Instead of binding access control attributes to users, it confines specific programs.
  • AppArmor is shipped with Ubuntu, which means it is fairly easy to get started.
  • In order to ease the maintenance, we first install the utilities by sudo apt-get install apparmor-utils
View gist:81702d8cc5eaefee277d

PPCA for IEEE 2014 Arrangement & Schedule

Teaching Assistants

Yiming Liu & Xutong Chen:Exams (problem sets and lectures)
Ted Yin & Tongliang Liao:The Project
Jiachen Shi:Lectures on Programming Skills
View gist:8b9e124dc245d9818fa4
#include <cstdio>
#include <cassert>
#include <cctype>
#include <cstring>
#include <cstdlib>
#define SCAST_FLOAT(x) static_cast<Float*>(x)
#define SCAST_INT(x) static_cast<Int*>(x)
/* Abstract interface for numbers */
View gist:cda8f040bde0bd9839b7

Enhanced Calculator Project


Write an S-expression_ calculator with following functionalities:

  • Reads the expressions from stdin and prints the output to stdout
    • Note that you should guarantee that your program only writes revelant
You can’t perform that action at this time.