Skip to content

Instantly share code, notes, and snippets.

View fanfeilong's full-sized avatar
🎯
Focusing

Fan Feilong fanfeilong

🎯
Focusing
View GitHub Profile
@fanfeilong
fanfeilong / 编码.md
Last active August 29, 2015 14:05
编码

字符编码


  • ASCII
  • EASCII
  • ISO 8859
    • ISO 8859-n(n=1,2,3,...,11,13,...,16)
    • Latin-1==ISO8859-1
  • GB2312
  • GBK > GB2312
  • BIG5 (small conflict with GB2312)
@fanfeilong
fanfeilong / Mathematics.md
Last active August 29, 2015 14:04
Mathematics

数学(Mathematics)

书籍


  • <<什么是数学>>

分支


  • 代数学
  • 高等代数
@fanfeilong
fanfeilong / 工程.md
Last active August 29, 2015 14:04
工程

编程中的工程问题


  • 库项目的预编译头文件和单一对外头文件

    • 使用XXXPreHeader.h/XXXPreHeader.cs统一管理对外依赖
    • 使用XXX.h/XXX.cs统一提供对外头文件
  • 使用宏定义切换Debug/Release/ProductRelease

    • 使用XXX_DEBUG宏设置调试版本配置
    • 使用XXX_LOG宏设置日志版本配置
  • 使用XXX_NLOG宏设置无日志版本配置

@fanfeilong
fanfeilong / datastruct and algorithm.md
Last active October 28, 2017 14:31
datastruct and algorithm

基本算法

  • 排序
    • 穩定的
      • 冒泡排序(bubble sort)-O(n^2)
      • 鸡尾酒排序(cocktail sort, 雙向的冒泡排序)-O(n^2)
      • 插入排序(insertion sort)-O(n^2)
      • 桶排序(bucket sort)-O(n);需要O(k)額外空間
      • 计数排序(counting sort)-O(n+k);需要O(n+k)額外空間
      • 归并排序(merge sort)-O(n*\log_{n});需要O(n)額外空間
  • 原地归并排序- O(n^2)
@fanfeilong
fanfeilong / 无厘头.md
Last active August 29, 2015 14:03
无厘头

酱油


黄昏,街边,小卖部。
人,男人,两个男人,一老一少,隔着柜台伫立着。
“是你?”
“是我。”
“你来了。”
“我来了。”
“你不该来。”
@fanfeilong
fanfeilong / 概念区分.md
Last active August 29, 2015 14:03
概念区分

见回复

@fanfeilong
fanfeilong / 经典文摘.md
Last active August 29, 2015 14:02
经典文摘

OF Study (论读书)


STUDIES serve for delight, for ornament, and for ability. Their chief use for delight, 
is in privateness and retiring; for ornament, is in discourse; and for ability, is in 
the judgment, and disposition of business. For expert men can exe-cute, and perhaps judge
of particulars, one by one; but the general counsels, and the plots and marshalling of 
affairs, come best, from those that are learned. To spend too much time in studies is sloth; 
to use them too much for ornament, is affectation; to make judgment wholly by their rules, 
is the humor of a scholar. They perfect nature, and are perfected by experience: for natural
@fanfeilong
fanfeilong / network.md
Last active August 29, 2015 14:00
network笔记

network notes

经典协议


  • Network Layer
    • OSI 7 Layer Model:
      Application > Presentation > Session > Transport > Network > DataLink > Physical
    • Internet 4 Layer Model:
      Application > Transport > Network > Data Link
  • Application
@fanfeilong
fanfeilong / 操作为王.md
Last active April 3, 2022 15:28
操作为王,关于操作的最佳实践、模式和案例

VIM 操作最佳实践


  • 字母、数字、控制键
    • hjkl四个方向键:h向左,j向下,k向上,l向右,这四个键让手不离盲打区域。
    • ggGgg是回到文本文件的第一行,G是定位到文本文件的最后一行。
    • gD 跳转到局部变量的定义处
    • % 跳转到配对的括号上
    • [[ 跳转到代码块的开头去
    • '' 跳转到光标上次停靠的地方
    • mx 设置书签