1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

The Nodebox CodeSharing Center is Here!

Posted by Theodore Test on Aug 10, 2008

Hello All,

Since people seem interested in the notion of a Nodebox Community Code-Sharing center, I've carved out a home for us at Siafoo, a general-purpose code-sharing site.

The starting point is the "Nodebox Community" group on Siafoo. It's a collection ground for individual code snippets or full libraries relating to Nodebox. You can browse the code and art "owned" by the group from there, as well as join to add your own bits of Nodebox joy.


Noteworthy benefits of the Nodebox CodeSharing group:

-- Built-in revision-remembering system. You, or anyone you allow, can go back and edit your code snippets.

-- Good image management/storage. You can upload and attach multiple images to your code snippets or libraries.

-- Other social-network-style options. Messaging. Comment sections for feedback. Activity feeds. Personal profiles.

-- Personal choice of licensing system. Authors can release their code under whatever copyright/copyleft agreement they prefer.

-- Other programming features not specific to Nodebox. Text formatting. Ajax previews. Chart making. Code search. LaTeX support. Etc etc.


Also, I wrote a Pygments lexer for Nodebox and the Siafoo admins were nice enough to implement it. In other words, we get Nodebox syntax highlighting for our code.

Right now the group has a public library for community-contributed primitives, a library for tutorial-related material, and my own little collection of flow-chart-drawing scripts. I bet we can spice things up further than that in no time. :)


 
Posted by Tom De Smedt on Aug 11, 2008

Looking good!
I've added a link to the group on the share page.



Posted by Tom De Smedt on Aug 11, 2008

One thing I've noticed is that when you download code from Siafoo, it is saved as a file with Windows line endings (carriage return + linefeed, Mac uses only linefeed)... so when you open the script in NodeBox you get an extra white line after each line (using the \ at the end of the line won't work anymore).

Any ideas?



Posted by Theodore Test on Aug 11, 2008

My plan is to talk to the admins about it. :)

They're quite responsive, so I'm pretty sure they can fix that in short order.



Posted by Theodore Test on Aug 17, 2008

Alright, Stou Sandalski, one of the Siafoo admins, informs me he has fixed the end-of-line issue. Let there be rejoicing!



Posted by Tom De Smedt on Aug 18, 2008

It works. Great!
If you think they are willing to make another adaption, perhaps we can suggest they include an optional filename field on the edit form? This way when you download a script it could have a more comprehensive name than, for example, 170.py.



Posted by Theodore Test on Aug 19, 2008

That's already a feature. The person who posts the snippet can give it a filename under the "miscellaneous options" settings at the bottom of the creation-page. I should probably go back and make certain I've done that for all of mine. :)

It also supports automatic version and date specification in the file names, if you prefer.



Posted by Jeremy Levine on Sep 09, 2008

Great site, but would like to see some more tutorials for those of us new to the world of code. Anything brewing?