Skip to content

Instantly share code, notes, and snippets.

View csukuangfj's full-sized avatar
👀
I may be slow to respond.

Fangjun Kuang csukuangfj

👀
I may be slow to respond.
  • Xiaomi Corporation
  • Peking
View GitHub Profile
@csukuangfj
csukuangfj / tmux-cheatsheet.markdown
Created May 28, 2018 12:58 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@csukuangfj
csukuangfj / spline.c
Last active July 6, 2019 16:53 — forked from svdamani/spline.c
Natural Cubic Spline Interpolation in 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);
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];
@csukuangfj
csukuangfj / FindMKL.cmake
Created July 9, 2018 02:58
FindMKL.cmake
################################################################################
#
# \file cmake/FindMKL.cmake
# \author J. Bakosi
# \copyright 2012-2015, Jozsef Bakosi, 2016, Los Alamos National Security, LLC.
# \brief Find the Math Kernel Library from Intel
# \date Thu 26 Jan 2017 02:05:50 PM MST
#
################################################################################
@csukuangfj
csukuangfj / BingConvert.cs
Created July 28, 2018 04:08 — forked from RosaryMala/BingConvert.cs
Functions to convert between WGS84 and bing mercator
using System;
public class BingConvert
{
public static double[] WGS84toGoogleBing(double lon, double lat)
{
double x = lon * 20037508.34 / 180;
double y = Math.Log(Math.Tan((90 + lat) * Math.PI / 360)) / (Math.PI / 180);
y = y * 20037508.34 / 180;
return new double[] { x, y };
@csukuangfj
csukuangfj / toggle_keybindings.tmux.conf
Created December 7, 2018 02:25 — forked from samoshkin/toggle_keybindings.tmux.conf
tmux.conf excerpt to toggle on/off session keybindings and prefix handling
bind -T root F12 \
set prefix None \;\
set key-table off \;\
set status-style "fg=$color_status_text,bg=$color_window_off_status_bg" \;\
set window-status-current-format "#[fg=$color_window_off_status_bg,bg=$color_window_off_status_current_bg]$separator_powerline_right#[default] #I:#W# #[fg=$color_window_off_status_current_bg,bg=$color_window_off_status_bg]$separator_powerline_right#[default]" \;\
set window-status-current-style "fg=$color_dark,bold,bg=$color_window_off_status_current_bg" \;\
if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\
refresh-client -S \;\
bind -T off F12 \
@csukuangfj
csukuangfj / cpp-notes.md
Last active January 11, 2019 01:57
notes about c++ programming
@csukuangfj
csukuangfj / arm-notes.md
Last active February 12, 2022 13:24
arm notes

Deep Learning

  • https://github.com/ARM-software/CMSIS_5/blob/develop/CMSIS/NN/Include/arm_nnfunctions.h
  • 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
csukuangfj / deep-learning-notes
Last active December 24, 2018 09:44
deep learning notes
- a blog article: "Understanding LSTM Networks", http://colah.github.io/posts/2015-08-Understanding-LSTMs/
- a paper (LSTM): long short-term memory: http://www.bioinf.jku.at/publications/older/2604.pdf
- a paper (GRU) Gated Recurrent Unit: "Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine
Translation", 2014, https://arxiv.org/pdf/1406.1078v3.pdf
- phd thesis: "Long Short-Term Memory in Recurrent Neural Networks", 2001, http://www.felixgers.de/papers/phd.pdf