If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
{ | |
"name": "geotest", | |
"subdomain": "geotest", | |
"author": "Dmitri Voronianski <[email protected]>", | |
"scripts": { | |
"start": "server.js" | |
}, | |
"version": "0.0.2-3", | |
"engines": { | |
"node": "0.8.x" |
function typewriter(text, n) { | |
if (n < (text.length)) { | |
aboutBlock.html(text.substring(0, n+1)); | |
n++; | |
setTimeout(function() { | |
myprint(text, n) | |
}, 100); | |
} | |
} |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Cross-Origin Resource Sharing (CORS) test</title> | |
</head> | |
<body> | |
<body> | |
<h2>Test CORS localhost</h2> | |
<a href="#" class="put">PUT</a> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> |
// Basic XMPP bot example for HipChat using node.js | |
// To use: | |
// 1. Set config variables | |
// 2. Run `node hipchat_bot.js` | |
// 3. Send a message like "!weather 94085" in the room with the bot | |
var request = require('request'); // github.com/mikeal/request | |
var sys = require('sys'); | |
var util = require('util'); |
/** | |
* Modified version of TJ's http support file from the Express repo: | |
* https://github.com/visionmedia/express/blob/master/test/support/http.js | |
* | |
* Module dependencies. | |
*/ | |
var EventEmitter = require('events').EventEmitter | |
, should = require('should') | |
, methods = ['get','post','put','delete','head'] |
/* | |
Put on top of the file before describe statements | |
Usage: | |
expect(fn).toBeFunction() | |
*/ | |
beforeEach(function (){ | |
this.addMatchers({ | |
toBeFunction: function (){ | |
return Object.prototype.toString.call(this.actual)==='[object Function]'; | |
} |
/** | |
* Custom print method plugin | |
* @param options {Object} - custom callbacks before print inited and after (onBeforePrint, onAfterPrint); | |
* | |
* (c) 2012 http://pixelhunter.me MIT Licensed | |
*/ | |
(function() { | |
var originalPrint = this.print; | |
chrome-install: | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' | |
sudo apt-get update | |
sudo apt-get install google-chrome-stable | |
sublime-install: | |
sudo add-apt-repository ppa:webupd8team/sublime-text-2 | |
sudo apt-get update | |
sudo apt-get install sublime-text |
If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
Host github.com | |
User git | |
Hostname ssh.github.com | |
PreferredAuthentications publickey | |
IdentityFile ~/.ssh/id_rsa | |
Port 443 |