http://www.nickbusey.com/2011/07/getting-started-with-node/
http://mattkopala.com/blog/2012/02/12/getting-started-with-nodejs/
https://github.com/joyent/node/wiki/Resources
http://blog.daviddollar.org/2011/05/06/introducing-foreman.html
http://garann.github.com/template-chooser/
http://nodebeginner.org/index.html
http://howtonode.org/6f4cdfb2f4c0c3310f8cef6679902ddb8d13a9f8/express-mongodb
https://github.com/learnboost/stylus
http://www.giantflyingsaucer.com/blog/?p=3497
http://blog.alagad.com/2010/07/21/an-introduction-to-nodejs-a-javascript-based-server/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %p - Meridian indicator (``AM'' or ``PM'') | |
| %P - Meridian indicator (``am'' or ``pm'') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def narrow_by_tag(title, spotlist_id = 0, count = 0) | |
| tag_id = "narrow-bg-#{spotlist_id}" | |
| content_tag :li do | |
| content_tag :a, :href => url do | |
| content = check_box_tag tag_id | |
| content << title | |
| content << content_tag :span, :class => 'counter' { count } | |
| end | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def dots_tag(count) | |
| content = (1..count).collect do |i| | |
| content_tag(:li) do | |
| content_tag(:a, :href => '#', :id => "dot-#{i}") do | |
| "Feature #{i}" | |
| end | |
| end | |
| end | |
| content.join('\n') | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lockscroll = true | |
| $('.scroll-pane').each () -> | |
| $(this).bind 'mousewheel', (event) -> | |
| if $(this).outerHeight() + api.getContentPositionY() >= api.getContentHeight() or api.getContentPositionY() == 0 | |
| event.preventDefault() if lockscroll |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # List files | |
| find . -name .svn -prune -o -type f -print; | |
| # List directories | |
| find . -name .svn -prune -o -type d -print; | |
| # Execute chmod for files | |
| find . -name .svn -prune -o -type f -exec chmod 644 {} \; | |
| # Execute chmod for directories |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- handle special cases like iPad retina | |
| DPI_SCALE = 1 | |
| if Util.isIPadRetina () then | |
| print ( "Why, iPad Retina; what big pixels you have." ) | |
| DPI_SCALE = 2 | |
| DISPLAY_WIDTH = 1024 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Process: moai [13803] | |
| Path: /Users/USER/*/moai | |
| Identifier: moai | |
| Version: ??? | |
| Code Type: X86 (Native) | |
| Parent Process: bash [13802] | |
| User ID: 501 | |
| Date/Time: 2013-01-29 22:07:31.561 -0800 | |
| OS Version: Mac OS X 10.8.2 (12C3103) |
To start, we have a channelPlaying bool, which is passed as a "reference" to isPlaying using the syntax &channelPlaying. This seems to be somewhat a matter of style, but there are differences, though FMOD's examples uses the & version, so I've updated it to that one.
Secondly, FMODExChannel::isPlaying is the definition of a member function on the FMODExChannel. We call that with instance->isPlaying(), not instance::isPlaying() (which would be for a class function, afaik). Both references and class/instance operators seem to be similar to PHP style, which makes sense.
- bool *channelPlaying;
- self->mChannel::isPlaying(channelPlaying);
- bool isPlaying = self->mPlayState == PLAYING && *channelPlaying;
+ FMOD_RESULT result = FMOD_OK;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /********* OpenUrl.h Cordova Plugin Header *******/ | |
| #import <Cordova/CDV.h> | |
| @interface OpenUrl : CDVPlugin | |
| - (void)openUrl:(CDVInvokedUrlCommand*)command; | |
| @end |