Skip to content

Instantly share code, notes, and snippets.

View yishengjiang99's full-sized avatar
😃

Yisheng Jiang yishengjiang99

😃
  • GrepAwk
  • Palo Alto, CA
View GitHub Profile
@yishengjiang99
yishengjiang99 / app.c
Last active May 6, 2021 00:15
callfft.h
#include <stdio.h>
#include "read2.c"
#include <stdlib.h>
#include "fft.c"
complex *char_fft_for_sample(int midi, int velocity, double *stbl)
{
//add voice to vptr list
index22(phdrs[0].pid, phdrs[0].bankId, midi, velocity, 0);
voice *v = vptr->next;
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "read2.h"
#include <math.h>
#include <unistd.h>
#include <time.h>
#define sr 48000
@yishengjiang99
yishengjiang99 / ssr.js
Last active August 21, 2020 20:01
fast ssr.js (wip)
function ssr(req, res) {
const { createElement } = require("react");
const {renderToStaticMarkup, renderToString, renderToNodeSream} = require("react-dom/server");
const queue = [], stack=[];
const visited=Set();
queue.push("<DOCTYPE !html>");
const buffer="";
let parentElement;
const elementStreamMixer = new StreamInterWeaver();