This file contains 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
amilo@macbooksito:~/Development/node-libvirt$ dig +trace diocesissantarosadeosos.org | |
; <<>> DiG 9.7.0-P1 <<>> +trace diocesissantarosadeosos.org | |
;; global options: +cmd | |
. 12564 IN NS c.root-servers.net. | |
. 12564 IN NS g.root-servers.net. | |
. 12564 IN NS i.root-servers.net. | |
. 12564 IN NS d.root-servers.net. | |
. 12564 IN NS f.root-servers.net. | |
. 12564 IN NS m.root-servers.net. |
This file contains 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
srcdir = "." | |
blddir = "build" | |
def set_options(opt): | |
opt.tool_options("compiler_cxx") | |
def configure(conf): | |
conf.check_tool("compiler_cxx") | |
conf.check_tool("node_addon") | |
conf.find_program('node', var='NODE', mandatory=True) |
This file contains 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
camilo@macbooksito:~/Development/node-inotify$ node-waf clean configure build | |
'clean' finished successfully (0.012s) | |
Checking for program g++ or c++ : /usr/bin/g++ | |
Checking for program cpp : /usr/bin/cpp | |
Checking for program ar : /usr/bin/ar | |
Checking for program ranlib : /usr/bin/ranlib | |
Checking for g++ : ok | |
Checking for node prefix : ok /usr/local | |
Checking for program node : /usr/local/bin/node | |
Checking for header sys/inotify.h : not found |
This file contains 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
require.paths.unshift('build/default/src'); | |
sys = require('sys'); | |
fs = require('fs'); | |
http = require('http'); | |
Inotify = require('node-inotify').Inotify; | |
var inotify = new Inotify(); //persistent by default, new Inotify(false) //no persistent | |
var callback = function(event) { | |
var mask = event.mask; |
This file contains 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
sys = require('sys'); | |
fs = require('fs'); | |
Inotify = require('node-inotify').Inotify; | |
//You can use `new Inotify(false)` for non persistent mode | |
var inotify = new Inotify(); //persistent by default | |
var callback = function(event) { | |
var mask = event.mask; | |
var type = mask & inotify.IN_ISDIR ? 'Directory ' : 'File '; |
This file contains 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
<div class="function"> | |
<div id="title"> | |
<h2>var hypervisor = new Hypervisor(uri, readOnly)<h2> | |
<div> | |
<div id="description"> | |
<h2>Description</h2> | |
<div> | |
<p>tal cosa</p> | |
</div> | |
</div> |
This file contains 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
// CREATIONAL API | |
//create resources | |
//When CREATIONAL API is included, automatically it adds the property resourceTemplate | |
// To the USER API. it's like a mixin | |
var template = server.component('Twitter').template(); | |
template.suggested_name = 'MyTwitter' | |
template.desc = 'My personal Twitter account' | |
template.params.name = 'MyTwitterAccountName' | |
template.params.password = '******' |
This file contains 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
var nums = [1, 2]; | |
var add = 2; | |
while(add < 4000000) { | |
var term = nums[1] + nums[0]; | |
nums.push(term); | |
if(term % 2 == 0) { | |
add += term; | |
} |
This file contains 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
0. (bootstrap) write bash script to download and install nodejs and dependency addons: | |
node-jake for now. (using npm with version number of each addon) | |
(it could be based on nDistro) | |
The idea is to create a bespin-dependencies package and register it with npm. | |
This package will contain specific versions of: | |
jsdoc, closure-compiler, tiki, core_test and jquery. | |
1. write tests for Jakefile tasks using core_test | |
2. write Jakefile | |
a. implement dist task. |
This file contains 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
camilo@macbooksito:~/Development/skywriter$ hg push | |
pushing to http://bitbucket.org/camilo/skywriter | |
searching for changes | |
no changes found | |
camilo@macbooksito:~/Development/skywriter$ ls | |
docs dryice Jakefile LICENSE.txt platform production.json README.txt | |
camilo@macbooksito:~/Development/skywriter$ ls platform/ | |
bookmarklet browser common desktop embedded server |