Giter Site home page Giter Site logo

crackercat / nyaa-nodejs-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xadillax/nyaa-nodejs-demo

0.0 0.0 0.0 729 KB

Source code of "Node.js: Let's Write a Dozen of C++ Add-ons". 《Node.js:来一打 C++ 扩展》随书源码。

Home Page: http://nyaanode.2333.moe/

License: GNU General Public License v3.0

Python 20.44% C++ 76.36% JavaScript 3.20%

nyaa-nodejs-demo's Introduction

《Node.js:来一打 C++ 扩展》随书源码

封面

English Document

本仓库为死月所著《Node.js:来一打 C++ 扩展》的随书源码,大家尽情享用。

注意:所有的随书代码均在 macOS 命令行下 Node.js 6.x 测试通过。理论上,它们也可以在 Windows 和 UNIX 上运行良好,但我并没有验证过。

下载

本源码可从博文视点官方网站上下载。如果你对 Git 熟悉,且愿意使用 Git 克隆本仓库使用源码,非常欢迎。

如果需要克隆本仓库,可以使用以下命令行:

$ git clone https://github.com/XadillaX/nyaa-nodejs-demo.git --recurse-submodules

--recurse-submodules 参数允许你连通 submodule 一起克隆下来。

由于 GitHub 的特性,如果你直接从 GitHub 的本页面上直接通过 Download ZIP 链接下载压缩包,将不会包含一些必要依赖的 submodule。所以如果你想通过压缩包下载的形式获取源码,请转到博文视点官方网站。

快速导航

  1. first build:「1.4.2. node-gyp」
  2. cpp entry:「2.2.2. Node.js 模块加载原理」
  3. function template:「3.6.1. 函数模板(Function Template)」
  4. object template:「3.6.2. 对象模板(Object Template)」
  5. object template accessor:「3.6.3. 对象模板的访问器(Accessor)与拦截器(Interceptor)」
  6. mapped property interceptor:「3.6.3. 对象模板的访问器(Accessor)与拦截器(Interceptor)」
  7. indexed property interceptor:「3.6.3. 对象模板的访问器(Accessor)与拦截器(Interceptor)」
  8. internal field wrong:「3.6.4. 对象模板的内置字段(Internal Field)」
  9. internal field right:「3.6.4. 对象模板的内置字段(Internal Field)」
  10. function template inherit:「3.6.5. 函数模板的继承(Inherit)」
  11. array prototype map:「3.7.6. 函数(Function)」
  12. try catch:「3.8.1. Try-Catch」
  13. hello world again:「4.2.1. 又是 Hello World」
  14. function parameters:「4.2.2. 函数参数」
  15. run callback:「4.2.3. 回调函数」
  16. object factory:「4.2.4. 对象返回」
  17. function factory:「4.2.5. 函数返回」
  18. myobject:「4.3.1. C++ 与 JavaScript 类封装」
  19. at_exit_hook:「4.3.4. 进程退出钩子」
  20. nan echo:「5.2.3. 来不及解释了,先上车」
  21. nan array prototype map:「5.2.4. 基础帮助函数和宏」
  22. nan set method:「5.3.3. 函数设置」
  23. nan reverse string:「5.4.3. 与数据对象“玩耍”」
  24. nan object demo:「5.4.3. 与数据对象“玩耍”」
  25. nan array demo:「5.4.3. 与数据对象“玩耍”」
  26. nan json:「5.4.3. 与数据对象“玩耍”」
  27. nan buffer:「5.4.3. 与数据对象“玩耍”」
  28. nan nbodies:「5.5.3. Nan::AsyncWorker」
  29. nan dummy download:「5.5.4. Nan::AsyncProgressWorker」
  30. libuv idle:「6.1.3. 尝个甜头」
  31. libuv sleep sort:「6.2.1. libuv 的线程」
  32. libuv sleep sort advanced:「6.2.2. 同步原语(Synchronization Primitives)」
  33. libuv watchdog:「6.3.2. Watchdog 半成品实战解析」
  34. efsw:「7.1.1. 功能规划」
  35. efsw advanced:「7.4.2. JavaScript 代码完善」
  36. napi:「9.1.1. 实现一个 Echo 函数」

购书链接

QQ 交流群

QQ 群

感谢阅读

最后,感谢大家支持本书。

フランドール・スカーレット

图片来自 Pixiv

nyaa-nodejs-demo's People

Contributors

xadillax avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.