Skip to content

Instantly share code, notes, and snippets.

View c4milo's full-sized avatar
:octocat:

Camilo Aguilar c4milo

:octocat:
View GitHub Profile
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.
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)
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
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;
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 ';
<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>
// 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 = '******'
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;
}
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.
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