Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Fangjun Kuang csukuangfj

I may be slow to respond.
View GitHub Profile

Deep Learning

  • a paper [CMSIS-NN: Efficient Neural Network Kernels for Arm Cortex-M CPUs][1], google scolar of the author [Liangzhen Lai][2]
  • a paper [Fixed point quantization of deep convolutional networks][3]
  • a paper [Deep Convolutional Neural Network Inference with Floating-point Weights and Fixed-point Activations][4]
  • a blog [Why GEMM is at the heart of deep learning][5]
  • a paper [cuDNN: Efficient Primitives for Deep Learning][6]
csukuangfj /
Created Apr 22, 2019
create wav file using c++
// author: fangjun kuang <csukuangfj at gmail dot com>
// date: Apr. 22, 2019
// refer to
#include <fstream>
#include <iostream>
typedef struct WAV_HEADER {
/* RIFF Chunk Descriptor */
csukuangfj / QGraphicsSceneTest.cpp
Last active Jun 12, 2020 — forked from benjbaron/QGraphicsSceneTest.cpp
Qt QGraphicsScene click, select, move, resize, delete QGraphicsItems
View QGraphicsSceneTest.cpp
// Copyright 2017. All Rights Reserved.
// Author: (Fangjun Kuang)
#include <QtGui>
#include <QGraphicsRectItem>
#include <QGraphicsView>
#include <QApplication>
#include <QGraphicsSceneMouseEvent>
class CustomItem : public QGraphicsEllipseItem
csukuangfj / default-linker-script.txt
Last active Apr 1, 2020
This file shows the default linker script of `ld`, use `ld --verbose` to show it.
View default-linker-script.txt
GNU ld (GNU Binutils for Ubuntu) 2.25.1
Supported emulations:
csukuangfj / spline.c
Last active Jul 6, 2019 — forked from svdamani/spline.c
Natural Cubic Spline Interpolation in C
View spline.c
/** Numerical Analysis 9th ed - Burden, Faires (Ch. 3 Natural Cubic Spline, Pg. 149) */
#include <stdio.h>
int main() {
/** Step 0 */
int n, i, j;
scanf("%d", &n);
float x[n + 1], a[n + 1], h[n], A[n], l[n + 1],
u[n + 1], z[n + 1], c[n + 1], b[n], d[n];

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](

csukuangfj /
Created Oct 17, 2017 — forked from anonymous/
Project READMEs - 3D Reconstruction with Computer Vision

Project 1: Panorama stitching

Due: 23 Sept 2014, 11:59pm

In this project, you'll write software that stitches multiple images of a scene together into a panorama automatically. A panorama is a composite image that has a wider field of view than a single image, and can combine images taken at different times for interesting effects.

Your image stitcher will, at a minimum, do the following:

View RNN-notes
- a blog article
You can’t perform that action at this time.