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
$(document).ready(function() { | |
//$.cookie('mri', null); | |
var mri_numChilds = $('body').data('numChilds'); | |
var mri_id = mri_numChilds ? $('body').data('id') : $('body').data('pid'); | |
var mri_pid = $('body').data('pid'); | |
var mri_pos = 0; | |
var mri_max = 5; | |
var mri = []; | |
$('#menu-right > div').hide().each(function() { | |
mri.push($(this)); |
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
rem Use curl and 7za | |
set NPM_VERSION=1.1.0-3 | |
curl -o "%temp%\npm.zip" "http://nodejs.org/dist/npm-%NPM_VERSION%.zip" | |
if not exist "%temp%\npm" ( mkdir "%temp%\npm" ) | |
7za x "%temp%\npm.zip" -o"%temp%\npm" | |
7za a -tzip "Release\node-v%NODE_VERSION%-win.zip" "Release\node.exe" "%temp%\npm\*" -mx9 | |
rem Same but with wget and zip/unzip | |
set NPM_VERSION=1.1.0-3 | |
wget -O "%temp%\npm.zip" "http://nodejs.org/dist/npm-%NPM_VERSION%.zip" |
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
var net = require('net'); | |
connect(); | |
function connect() { | |
var client = net.connect('/tmp/test.sock', function() { //'connect' listener | |
console.log('client connected'); | |
client.write('world!'); | |
function ping() { |
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
var Stream = require('stream').Stream | |
, Lazy = require('lazy') | |
var timeout = -1 | |
, rndMax = 10000 | |
// create two streams and emit random JSON data strings (objects) | |
var s1 = createStream() | |
, s2 = createStream() | |
emit_random_data(s1, 's1', timeout, rndMax) |
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
module.exports = plugin | |
var request = require('request') | |
function plugin(chunk, context, bodies, params) { | |
return chunk.map(function(chunk) { | |
request | |
( { method: 'GET' | |
, uri: 'http://localhost:2001/useyourimagination/' | |
} |
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
admin@199069:~/tmp$ node -v | |
v0.7.10 | |
admin@199069:~/tmp$ npm -v | |
1.1.25 | |
admin@199069:~/tmp$ npm install restify | |
npm http GET https://registry.npmjs.org/restify | |
npm http 200 https://registry.npmjs.org/restify | |
npm http GET https://registry.npmjs.org/restify/-/restify-1.4.3.tgz | |
npm http GET https://registry.npmjs.org/async/0.1.22 | |
npm http GET https://registry.npmjs.org/bunyan/0.8.0 |
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
var foo = require('./foo') | |
, barOfFoo = moduleOfModule('./bar', './foo') | |
function moduleOfModule(module, ofModule) { | |
var c = require.cache[require.resolve(ofModule)] | |
, f = require.resolve(module, c) | |
, r | |
c.children.some(function(c) { | |
if(c.filename === f) { | |
r = c.exports |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<!-- Simulate a dynamically changing page --> | |
<div id="main"></div> | |
<script> | |
var el = document.getElementById('main'); |
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
{ | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string" | |
}, | |
"description": { | |
"type": "string", | |
"optional": true | |
}, |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.9/angular.min.js"></script> | |
<script src="http://metawidget.sourceforge.net/js/3.7/metawidget-core.min.js"></script> | |
<script src="http://metawidget.sourceforge.net/js/3.7/metawidget-angular.min.js"></script> |
OlderNewer