As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
configdocs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public - Sep 07, 2020 update docs for
npm version
| var repeatingArray = [4, 5, 6]; | |
| var circularObj = { | |
| a: 1, | |
| b: 1, | |
| c: "an allowed repeating string", | |
| d: "an allowed repeating string", | |
| e: repeatingArray, | |
| f: repeatingArray, | |
| g: [ |
| # View list of connections and their states | |
| netstat -tan | grep ':80 ' | awk '{print $6}' | sort | uniq -c | |
| # List all connections and timers | |
| ss -rota | less |
| #!upstart | |
| description "your fancy description that no one will see ;)" | |
| author "Your Name <youremail@fqdn>" | |
| # start on every run level, 2 is the one on Ubuntu | |
| start on runlevel [2345] | |
| # stop on halt, maintenance or reboot | |
| stop on runlevel [016] |
| // Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
| // jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
| // author: Pawel Kozlowski | |
| var myApp = angular.module('myApp', []); | |
| //service style, probably the simplest one | |
| myApp.service('helloWorldFromService', function() { | |
| this.sayHello = function() { | |
| return "Hello, World!" |
| .DS_Store | |
| tmp/ |
| var net = require('net') | |
| var sock = net.connect(1337) | |
| process.stdin.pipe(sock) | |
| sock.pipe(process.stdout) | |
| sock.on('connect', function () { | |
| process.stdin.resume(); | |
| process.stdin.setRawMode(true) |
| module.exports = TwoStep; | |
| var slice = Array.prototype.slice; | |
| function Group(callback) { | |
| this.args = [null]; | |
| this.left = 0; | |
| this.callback = callback; | |
| this.isDone = false; | |
| } |
| //app.js Socket IO Test | |
| var app = require('express').createServer(), | |
| redis = require('socket.io/node_modules/redis'), | |
| io = require('socket.io').listen(app); | |
| var pub = redis.createClient(port, "url"); | |
| var sub = redis.createClient(port, "url"); | |
| var store = redis.createClient(port, "url"); | |
| pub.auth('pass', function(){console.log("adentro! pub")}); | |
| sub.auth('pass', function(){console.log("adentro! sub")}); |