Skip to content

Instantly share code, notes, and snippets.

@ZDSu
ZDSu / vi-cheatsheet.md
Created May 30, 2020 04:32 — forked from dasautoooo/vi-cheatsheet.md
Vi Editor Cheat Sheet

Vi Editor Cheat Sheet

光标移动命令

字符

按键 解释
h,j,k,l 左,右,上,下

文本

按键 解释
@ZDSu
ZDSu / vis_ml2.py
Created March 7, 2020 08:07 — forked from sinhrks/vis_ml2.py
Animate Multilayer Perceptron using 2D XOR Data
# -*- coding: utf-8 -*-
"""
This code uses "MLP" class defined in:
http://deeplearning.net/tutorial/mlp.html#tips-and-tricks-for-training-mlps
"""
import os
import sys
import time
@ZDSu
ZDSu / peakdet.m
Created March 16, 2019 05:07 — forked from endolith/peakdet.m
Peak detection in Python [Eli Billauer]
function [maxtab, mintab]=peakdet(v, delta, x)
%PEAKDET Detect peaks in a vector
% [MAXTAB, MINTAB] = PEAKDET(V, DELTA) finds the local
% maxima and minima ("peaks") in the vector V.
% MAXTAB and MINTAB consists of two columns. Column 1
% contains indices in V, and column 2 the found values.
%
% With [MAXTAB, MINTAB] = PEAKDET(V, DELTA, X) the indices
% in MAXTAB and MINTAB are replaced with the corresponding
% X-values.
@ZDSu
ZDSu / analytic_wfm.py
Created March 16, 2019 05:04 — forked from sixtenbe/analytic_wfm.py
Peak detection in Python
#!/usr/bin/python2
# Copyright (C) 2016 Sixten Bergman
# License WTFPL
#
# This program is free software. It comes without any warranty, to the extent
# permitted by applicable law.
# You can redistribute it and/or modify it under the terms of the Do What The
# Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See