├── .gitignore ├── .ruby-gemset ├── .ruby-version ├── CONTRIBUTING.md ├── Gemfile ├── Gemfile.lock ├── README.md ├── _config.yml ├── _includes └── toc.html ├── _layouts ├── index.html └── page.html ├── dinky.html ├── docs ├── arguments.md ├── calling-native.md ├── getting-started.md ├── globals.md ├── jsclasses.md ├── native-common-code.md ├── objects.md └── returning.md ├── getting-started ├── binding.gyp ├── index.js ├── src │ └── hello.cc └── wscript ├── images ├── arrow-down.png ├── arrow-down.svg ├── octocat-small.png └── octocat.svg ├── index.md ├── javascripts └── scale.fix.js └── stylesheets ├── pygment_trac.css └── styles.css /.gitignore: -------------------------------------------------------------------------------- 1 | _site 2 | -------------------------------------------------------------------------------- /.ruby-gemset: -------------------------------------------------------------------------------- 1 | node-bindings-guide 2 | -------------------------------------------------------------------------------- /.ruby-version: -------------------------------------------------------------------------------- 1 | 2.1.3 2 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # How to contribute 2 | 3 | Contributions are highly appreciated, please just follow these rules: 4 | 5 | 1. Do the fork / pull request dance with your changes 6 | 2. For consistency sake, please follow the [Google C++ Style Guide](http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml) 7 | 3. That's it! Thanks for your help. 8 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | gem "jekyll" 4 | gem "rdiscount" 5 | -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- 1 | GEM 2 | remote: https://rubygems.org/ 3 | specs: 4 | albino (1.3.3) 5 | posix-spawn (>= 0.3.6) 6 | classifier (1.3.3) 7 | fast-stemmer (>= 1.0.0) 8 | directory_watcher (1.4.1) 9 | fast-stemmer (1.0.1) 10 | jekyll (0.11.2) 11 | albino (~> 1.3) 12 | classifier (~> 1.3) 13 | directory_watcher (~> 1.1) 14 | kramdown (~> 0.13) 15 | liquid (~> 2.3) 16 | maruku (~> 0.5) 17 | kramdown (0.14.1) 18 | liquid (2.4.1) 19 | maruku (0.6.1) 20 | syntax (>= 1.0.0) 21 | posix-spawn (0.3.6) 22 | rdiscount (1.6.8) 23 | syntax (1.0.0) 24 | 25 | PLATFORMS 26 | ruby 27 | 28 | DEPENDENCIES 29 | jekyll 30 | rdiscount 31 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # node-bindings-guide 2 | 3 | You are looking at the _Node/V8 native bindings guide_ source. For the actual guide take a loot at [http://luismreis.github.com/node-bindings-guide/](http://luismreis.github.com/node-bindings-guide/). 4 | 5 | The guide uses [Dinky theme](https://github.com/broccolini/dinky) and is build by the [github pages](http://pages.github.com/)'s [jekyll](https://github.com/mojombo/jekyll) site generator. 6 | 7 | To build the site locally: 8 | 9 | Use bundler to install jekyll: 10 | 11 | bundle 12 | 13 | And then jekyll to generate the site: 14 | 15 | jekyll --safe --auto --server --base-url /node-bindings-guide/ 16 | 17 | To access it point your browser to `http://localhost:4000/node-bindings-guide/`. 18 | 19 | The `_config.yml` file is already configured with the same settings as gh-pages. 20 | 21 | For contributions, please check [contributing](https://github.com/luismreis/node-bindings-guide/blob/gh-pages/CONTRIBUTING.md). 22 | 23 | ------ 24 | 25 | Have fun building your own native libraries! 26 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | lsi: false 2 | pygments: true 3 | markdown: rdiscount 4 | -------------------------------------------------------------------------------- /_includes/toc.html: -------------------------------------------------------------------------------- 1 |
This project is maintained by luismreis
35 |This is an amazing project description.
36 |This project is maintained by Harrison Ford
42 |View the source of this content.
46 |Let's get the whole "linebreak" thing out of the way. The next paragraph contains two phrases separated by a single newline character:
47 |Roses are red
Violets are blue
The next paragraph has the same phrases, but now they are separated by two spaces and a newline character:
49 |Roses are emphasized
Violets are strong
My email addy is tom@github.com.
62 |In first grade I learned that 5 > 3 and 2 < 7. Maybe some arrows. 1 -> 2 -> 3. 9 <- 8 <- 7.
64 |Triangles man! a^2 + b^2 = c^2
65 |require 'redcarpet'
67 | markdown = Redcarpet.new("Hello World!")
68 | puts markdown.to_html
69 |
70 | The above header should be an H2 tag. Now, for a list of fruits:
73 |Let's get crazy:
79 |This is a list item with two paragraphs. Lorem ipsum dolor
sit amet, consectetuer adipiscing elit. Aliquam hendrerit
mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet
vitae, risus. Donec sit amet nisl. Aliquam semper ipsum
sit amet velit.
Suspendisse id sem consectetuer libero luctus adipiscing.
What about some code in a list? That's insane, right?
85 |In Ruby you can map like this:
87 |['a', 'b'].map { |x| x.uppercase }
88 |
In Rails, you can do a shortcut:
90 |['a', 'b'].map(&:uppercase)
91 |
Some people seem to like definition lists
94 |I am a robot
101 |Maybe you want to print robot
to the console 1000 times. Why not?
def robot_invasion
103 | puts("robot " * 1000)
104 | end
105 |
106 | You see, that was formatted as code because it's been indented by four spaces.
107 |How about we throw some angle braces and ampersands in there?
108 |<div class="footer">
109 | © 2004 Foo Corporation
110 | </div>
111 |
112 | 115 |117 |I, at any rate, am convinced that He does not throw dice.
116 |
Or perhaps someone a little less eloquent:
118 |119 |122 |I wish you'd have given me this written question ahead of time so I
120 |
could plan for it... I'm sure something will pop into my head here in
the midst of this press conference, with all the pressure of trying to
come up with answer, but it hadn't yet...I don't want to sound like
121 |
I have made no mistakes. I'm confident I have. I just haven't - you
just put me under the spot here, and maybe I'm not as quick on my feet
as I should be in coming up with one.
ID | Name | Rank | 126 |
---|---|---|
1 | Tom Preston-Werner | Awesome | 129 |
2 | Albert Einstein | Nearly as awesome | 132 |
Let's not forget the horizontal rule
137 |I get 10 times more traffic from Google than from
Yahoo or MSN.
Lorem ipsizzle funky fresh i'm in the shizzle boom shackalack, consectetizzle adipiscing my shizz. Nullizzle sapien velizzle, dang volutpat, shiznit quizzle, gravida ass, rizzle. Pot get down get down tortor. Sed erizzle. Black go to hizzle dolizzle dapibizzle turpis fo shizzle my nizzle yo. Maurizzle pellentesque nibh et check it out. Bow wow wow check it out tortizzle. Pellentesque for sure rhoncizzle bow wow wow. In owned habitasse brizzle dictumst. Nizzle dapibizzle. Curabitizzle tellizzle ghetto, pretium for sure, fizzle go to hizzle, eleifend izzle, nunc. Dope suscipizzle. Integizzle boom shackalack velit ass purus.
144 |Lorem ipsizzle funky fresh i'm in the shizzle boom shackalack, consectetizzle adipiscing my shizz. Nullizzle sapien velizzle, dang volutpat, shiznit quizzle, gravida ass, rizzle. Pot get down get down tortor. Sed erizzle. Black go to hizzle dolizzle dapibizzle turpis fo shizzle my nizzle yo. Maurizzle pellentesque nibh et check it out. Bow wow wow check it out tortizzle. Pellentesque for sure rhoncizzle bow wow wow. In owned habitasse brizzle dictumst. Nizzle dapibizzle. Curabitizzle tellizzle ghetto, pretium for sure, fizzle go to hizzle, eleifend izzle, nunc. Dope suscipizzle. Integizzle boom shackalack velit ass purus.
146 |Lorem ipsizzle funky fresh i'm in the shizzle boom shackalack, consectetizzle adipiscing my shizz. Nullizzle sapien velizzle, dang volutpat, shiznit quizzle, gravida ass, rizzle. Pot get down get down tortor. Sed erizzle. Black go to hizzle dolizzle dapibizzle turpis fo shizzle my nizzle yo. Maurizzle pellentesque nibh et check it out. Bow wow wow check it out tortizzle. Pellentesque for sure rhoncizzle bow wow wow. In owned habitasse brizzle dictumst. Nizzle dapibizzle. Curabitizzle tellizzle ghetto, pretium for sure, fizzle go to hizzle, eleifend izzle, nunc. Dope suscipizzle. Integizzle boom shackalack velit ass purus.
148 |Lorem ipsizzle funky fresh i'm in the shizzle boom shackalack, consectetizzle adipiscing my shizz. Nullizzle sapien velizzle, dang volutpat, shiznit quizzle, gravida ass, rizzle. Pot get down get down tortor. Sed erizzle. Black go to hizzle dolizzle dapibizzle turpis fo shizzle my nizzle yo. Maurizzle pellentesque nibh et check it out. Bow wow wow check it out tortizzle. Pellentesque for sure rhoncizzle bow wow wow. In owned habitasse brizzle dictumst. Nizzle dapibizzle. Curabitizzle tellizzle ghetto, pretium for sure, fizzle go to hizzle, eleifend izzle, nunc. Dope suscipizzle. Integizzle boom shackalack velit ass purus.
150 |Lorem ipsizzle funky fresh i'm in the shizzle boom shackalack, consectetizzle adipiscing my shizz. Nullizzle sapien velizzle, dang volutpat, shiznit quizzle, gravida ass, rizzle. Pot get down get down tortor. Sed erizzle. Black go to hizzle dolizzle dapibizzle turpis fo shizzle my nizzle yo. Maurizzle pellentesque nibh et check it out. Bow wow wow check it out tortizzle. Pellentesque for sure rhoncizzle bow wow wow. In owned habitasse brizzle dictumst. Nizzle dapibizzle. Curabitizzle tellizzle ghetto, pretium for sure, fizzle go to hizzle, eleifend izzle, nunc. Dope suscipizzle. Integizzle boom shackalack velit ass purus.
152 |Lorem ipsizzle funky fresh i'm in the shizzle boom shackalack, consectetizzle adipiscing my shizz. Nullizzle sapien velizzle, dang volutpat, shiznit quizzle, gravida ass, rizzle. Pot get down get down tortor. Sed erizzle. Black go to hizzle dolizzle dapibizzle turpis fo shizzle my nizzle yo. Maurizzle pellentesque nibh et check it out. Bow wow wow check it out tortizzle. Pellentesque for sure rhoncizzle bow wow wow. In owned habitasse brizzle dictumst. Nizzle dapibizzle. Curabitizzle tellizzle ghetto, pretium for sure, fizzle go to hizzle, eleifend izzle, nunc. Dope suscipizzle. Integizzle boom shackalack velit ass purus.
154 |