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:12
音乐

分类


泛音在声学和音乐中,指一个声音中除了基频外其他频率的音。乐器或人声等自然发出的音,一般都不会只包含一个频率(参见纯音),而是可以分解成若干个不同频率的音的叠加。声音的波形是具有周期性的,因此根据傅里叶变换的理论,声音可以分解成若干个不同频率纯音的叠加。这些频率都是某一频率的倍数,这一频率就称作基频,也就决定了这个音的音高。假设某个音的基频为f,则频率为2f的音称为第一泛音,频率为3f的音称为第二泛音,等等。

通常情况下我们听的音像制品都是多件乐器多个声部的,有主旋律,有伴奏,有唱,有演奏,它们的声音都被混合起来,而且这些音像制品在一般情况下不会同时与它的总谱同时发行,这样的话,就给业余的想演奏或演唱的人带来了不便,于是他们自力更生,通过好的听觉辨别能力把自己需要的某种乐器或是主旋律从磁带中找出来并另外记录下谱子来,就叫扒谱。

@fanfeilong
fanfeilong / Distributed Computing.md
Last active August 29, 2015 14:11
Distributed Computing
@fanfeilong
fanfeilong / linux shell.md
Last active August 29, 2015 14:10
linux shell

command line


  • short path in shell: export PS1='[\u@\h \W]\$ '
  • change file permission:su chmod 777 file
  • enable excute:su chmod +x file.sh
  • wiki:chmod
  • view so info
    • readelf -a file.so #show all information
    • readelf -d file.so #show dependence so
  • readelf -h file.so #show header information
@fanfeilong
fanfeilong / android.md
Last active August 29, 2015 14:10
android dev

Basic

Tips

  • HashMap<int,xxx>,HashMap<long,xxx> are both invalid, because HashMap only accept key type that implements Comparable interface What's the Fuck!!! we must use HashMap<Interger,xxx> and HashMap<Long,xxx>. Java also provide another generic collection to solve this problem: LongSparseArray.

NDK

  • meta(important!!)
  • keep ndk version is the same as android os version, which will avoid lots exceptions
@fanfeilong
fanfeilong / 心理学.md
Last active August 29, 2015 14:10
心理学
@fanfeilong
fanfeilong / 化学.md
Last active August 29, 2015 14:08
化学
@fanfeilong
fanfeilong / lua.md
Last active August 29, 2015 14:07
Lua Source Code annotation

源码阅读顺序


Recommended reading order

  • lmathlib.c, lstrlib.c: get familiar with the external C API. Don't bother with the pattern matcher though. Just the easy functions.
  • lapi.c: Check how the API is implemented internally. Only skim this to get a feeling for the code. Cross-reference to lua.h and luaconf.h as needed.
  • lobject.h: tagged values and object representation. skim through this first. you'll want to keep a window with this file open all the time.
  • lstate.h: state objects. ditto.
  • lopcodes.h: bytecode instruction format and opcode definitions. easy.
  • lvm.c: scroll down to luaV_execute, the main interpreter loop. see how all of the instructions are implemented. skip the details for now. reread later.
  • ldo.c: calls, stacks, exceptions, coroutines. tough read.
@fanfeilong
fanfeilong / 物理.md
Last active August 29, 2015 14:05
物理
  • 物理学家
    • 经典力学
      • 牛顿
    • 电磁学
      • 赫兹
      • 富兰克林
      • 安倍
      • 法拉第
      • 亨利
  • 戴维
@fanfeilong
fanfeilong / 历史.md
Last active August 29, 2015 14:05
history

过去、现在、将来


    • <<上下五千年>>,虽然5k是一个胡说八道的YY,不过这书还是得看下吧
    • <<全球通史>>
    • <<世界历史>>
    • <<世界历史地图集>>
    • <<文明之光>>,吴军博士著,延伸阅读...
  • &lt;&lt;工科先驱-国学大师唐文治&gt;&gt;,属于中国著名大学校长书系