Writing Node.js Native Extensions | Cloudkick, manage servers better: "Next we declare the HelloWorld class. It inherits from the node::ObjectWrap class, which provides several utilities for reference counting and passing contexts around inside v8. Generally all of your Objects will want to inherit from ObjectWrap:"
'via Blog this'
Saturday, January 07, 2012
Writing Node.js Native Extensions | Cloudkick, manage servers better
Writing Node.js Native Extensions | Cloudkick, manage servers better: "Hello World, from a C++ Extension
To start with a C++ extension, you'll need everything you needed to compile Node.js, and note that I'm working with Node.js 0.2.0. Everything here should be compatible for all future 0.2.x versions. Once you have Node installed however, you shouldn't need anything extra for these to compile and work."
'via Blog this'
To start with a C++ extension, you'll need everything you needed to compile Node.js, and note that I'm working with Node.js 0.2.0. Everything here should be compatible for all future 0.2.x versions. Once you have Node installed however, you shouldn't need anything extra for these to compile and work."
'via Blog this'
HTML5 Demos and Examples
HTML5 Demos and Examples: "HTML 5 Demos and Examples
HTML 5 experimentation and demos I've hacked together. Click on the browser support icon or the technology tag to filter the demos (the filter is an OR filter)."
'via Blog this'
HTML 5 experimentation and demos I've hacked together. Click on the browser support icon or the technology tag to filter the demos (the filter is an OR filter)."
'via Blog this'
Friday, January 06, 2012
Sprite.js documentation — sprite.js 1.2.0 documentation
Sprite.js documentation — sprite.js 1.2.0 documentation: "Sprite.js is a framework that lets you create animations and games using sprites in an efficient way. The goal is to allow a common framework for desktop and mobile browsers and use the latest technology available on each platform. Sprite.js is tested on WebKit, Firefox, Android phones, Opera and IE9.
"
'via Blog this'
"
'via Blog this'
Socket.IO: the cross-browser WebSocket for realtime apps.
Socket.IO: the cross-browser WebSocket for realtime apps.: "What is Socket.IO?
Socket.IO aims to make realtime apps possible in every browser and mobile device, blurring the differences between the different transport mechanisms. It's care-free realtime 100% in JavaScript."
'via Blog this'
Socket.IO aims to make realtime apps possible in every browser and mobile device, blurring the differences between the different transport mechanisms. It's care-free realtime 100% in JavaScript."
'via Blog this'
JavaScript Sprite Animation Using jQuery » SitePoint
JavaScript Sprite Animation Using jQuery » SitePoint: "2) Setting up some useful variables
We have a handful of numbers that we’ll need to use several times, so it makes sense to store them in variables. That means we’ll only need to update our script in two places if we decide to change our page size later. The variable names do a fairly good job of describing what they are:
view plainprint?
/* Page sizes*/
var $pageheight = 189; // our page height
var $pagewidth = 146; // our page width
var $pageYpos = 0; // current Y position of our bg-image "
'via Blog this'
We have a handful of numbers that we’ll need to use several times, so it makes sense to store them in variables. That means we’ll only need to update our script in two places if we decide to change our page size later. The variable names do a fairly good job of describing what they are:
view plainprint?
/* Page sizes*/
var $pageheight = 189; // our page height
var $pagewidth = 146; // our page width
var $pageYpos = 0; // current Y position of our bg-image "
'via Blog this'
batiste/sprite.js - GitHub
batiste/sprite.js - GitHub: "sprite.js /
name age history message
doc November 10, 2011 Proposed corrections / improvements. Spelling, grammar, clarification… [mte]
lib November 15, 2011 Improve the dialog system in the RPG demo. [batiste]
tests November 21, 2011 Expose the sprite cache with sjs.spriteCache [batiste]"
'via Blog this'
name age history message
doc November 10, 2011 Proposed corrections / improvements. Spelling, grammar, clarification… [mte]
lib November 15, 2011 Improve the dialog system in the RPG demo. [batiste]
tests November 21, 2011 Expose the sprite cache with sjs.spriteCache [batiste]"
'via Blog this'
sprite.js: A Framework For Efficient JavaScript Sprites
sprite.js: A Framework For Efficient JavaScript Sprites: "The library provides two rendering backends: HTML and Canvas. The HTML version, which displays sprites using DOM elements, is used by default because the Canvas backend is slower when running on Firefox, Opera and Chrome. According to the project's notes on Github, "Canvas seems faster when there is a lot of transformations applied to the sprite.""
'via Blog this'
'via Blog this'
Sprite.js documentation — sprite.js 1.2.0 documentation
Sprite.js documentation — sprite.js 1.2.0 documentation: "Extra Features
To use some of these feature, you must include an extra javascript files in your web page.
ScrollingSurface object
This object is not included in sprite.js core and needs to be loaded independantly:
This object provide a simple and efficent way to display a moving background within a scene. The object buffers parts that have already been drawn and only redraw the necessary parts instead of the whole scene at every frame."
'via Blog this'
To use some of these feature, you must include an extra javascript files in your web page.
ScrollingSurface object
This object is not included in sprite.js core and needs to be loaded independantly:
This object provide a simple and efficent way to display a moving background within a scene. The object buffers parts that have already been drawn and only redraw the necessary parts instead of the whole scene at every frame."
'via Blog this'
Backbone.js
Backbone.js: "bindobject.bind(event, callback, [context])
Bind a callback function to an object. The callback will be invoked whenever the event (specified by an arbitrary string identifier) is fired. If you have a large number of different events on a page, the convention is to use colons to namespace them: "poll:start", or "change:selection"
"
'via Blog this'
Bind a callback function to an object. The callback will be invoked whenever the event (specified by an arbitrary string identifier) is fired. If you have a large number of different events on a page, the convention is to use colons to namespace them: "poll:start", or "change:selection"
"
'via Blog this'
Raphaël—JavaScript Library
Raphaël—JavaScript Library: "// Creates canvas 320 × 200 at 10, 50
var paper = Raphael(10, 50, 320, 200);
// Creates circle at x = 50, y = 40, with radius 10
var circle = paper.circle(50, 40, 10);
// Sets the fill attribute of the circle to red (#f00)
circle.attr("fill", "#f00");
// Sets the stroke attribute of the circle to white
circle.attr("stroke", "#fff");"
'via Blog this'
var paper = Raphael(10, 50, 320, 200);
// Creates circle at x = 50, y = 40, with radius 10
var circle = paper.circle(50, 40, 10);
// Sets the fill attribute of the circle to red (#f00)
circle.attr("fill", "#f00");
// Sets the stroke attribute of the circle to white
circle.attr("stroke", "#fff");"
'via Blog this'
An Introduction to the Raphael JS Library | Nettuts+
An Introduction to the Raphael JS Library | Nettuts+: "When we draw with Raphael, we do so onto a canvas. This canvas, which we’ll reference in a variable called ‘paper’, is created using the
Raphael() object. We always specify the width and height of the canvas, but have the option of also specifying either a) the absolute position of
the canvas relative to the viewport, or b) an element ‘container’ that the canvas is drawn inside."
'via Blog this'
Raphael() object. We always specify the width and height of the canvas, but have the option of also specifying either a) the absolute position of
the canvas relative to the viewport, or b) an element ‘container’ that the canvas is drawn inside."
'via Blog this'
jupiterjs/javascriptmvc - GitHub
jupiterjs/javascriptmvc - GitHub: "
name age history message
jmvc December 23, 2011 updated documentjs [justinbmeyer]
scripts October 13, 2011 removing old scripts [brianmoschel]
test December 21, 2011 resolving #27 [moschel]"
'via Blog this'
name age history message
jmvc December 23, 2011 updated documentjs [justinbmeyer]
scripts October 13, 2011 removing old scripts [brianmoschel]
test December 21, 2011 resolving #27 [moschel]"
'via Blog this'
SproutCore Guides: Getting Started
SproutCore Guides: Getting Started: "in apps/todos/todos.js
// updating previous code
Todos.todoListController = SC.ArrayController.create({
// Initialize the array controller with an empty array.
content: [],
// Creates a new todo with the passed title, then adds it
// to the array.
createTodo: function(title) {
var todo = Todos.Todo.create({ title: title });
this.pushObject(todo);
}
});"
'via Blog this'
// updating previous code
Todos.todoListController = SC.ArrayController.create({
// Initialize the array controller with an empty array.
content: [],
// Creates a new todo with the passed title, then adds it
// to the array.
createTodo: function(title) {
var todo = Todos.Todo.create({ title: title });
this.pushObject(todo);
}
});"
'via Blog this'
JavaScriptMVC
JavaScriptMVC: "JavaScriptMVC (JMVC) is a MIT licensed client-side JavaScript toolset that helps you build a maintainable, error-free, lightweight application in the shortest amount of time. It packages best-of-breed libraries and tools that are guaranteed (and tested) to work together. It supports every browser that jQuery supports."
'via Blog this'
'via Blog this'
using nodejs to play with javascript mvc (jmvc) on windows - ruzz' stream of semi-consciousness
using nodejs to play with javascript mvc (jmvc) on windows - ruzz' stream of semi-consciousness: "once you have that badboy in place you can download and extract jmvc to a folder somewhere on your hard drive. add a file called app.js to the root folder you just created and put the following code in it:
var sys = require("sys"),
http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs");
http.createServer(function(request, response) {
...
}"
var sys = require("sys"),
http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs");
http.createServer(function(request, response) {
...
}"
GitHub - Social Coding
GitHub - Social Coding: "git /'ɡɪt/
Git is an extremely fast, efficient, distributed version control system ideal for the collaborative development of software.
git·hub /'ɡɪtˌhʌb/
GitHub is the best way to collaborate with others. Fork, send pull requests and manage all your public and private git repositories."
'via Blog this'
Git is an extremely fast, efficient, distributed version control system ideal for the collaborative development of software.
git·hub /'ɡɪtˌhʌb/
GitHub is the best way to collaborate with others. Fork, send pull requests and manage all your public and private git repositories."
'via Blog this'
Welcome to jsFiddle’s documentation — jsFiddle v0.5a2 documentation
Welcome to jsFiddle’s documentation — jsFiddle v0.5a2 documentation: "JsFiddle is a playground for web developers, a tool which may be used in many ways. One can use it as an online editor for snippets build from HTML, CSS and JavaScript. The code can then be shared with others, embedded on a blog, etc. Using this approach, JavaScript developers can very easily isolate bugs. We aim to support all actively developed frameworks - it helps with testing compatibility."
'via Blog this'
'via Blog this'
Subscribe to:
Posts (Atom)