npm Users By Downloads (git.io/npm-top)
npm users sorted by the monthly downloads of their modules, for the range May 6, 2018 until Jun 6, 2018.
Metrics are calculated using top-npm-users.
| # | User | Downloads |
|---|
| var http = require('http'); | |
| var io = require('socket.io'); | |
| var sys = require('sys'); | |
| var amqp = require('amqp'); | |
| server = http.createServer(function(req, res){ | |
| res.writeHead(200, {'Content-Type': 'text/html'}); | |
| res.end('<h1>Hello world</h1>'); | |
| }); |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="/socket.io/socket.io.js"></script> | |
| <script> | |
| (function () { | |
| var onMessage = function (data) { | |
| // Do something with the message data | |
| }; |
| var request = require('request') | |
| /** | |
| * Handle multiple requests at once | |
| * @param urls [array] | |
| * @param callback [function] | |
| * @requires request module for node ( https://github.com/mikeal/request ) | |
| */ | |
| var __request = function (urls, callback) { |
| // Start `node d3-server.js` | |
| // Then visit http://localhost:1337/ | |
| // | |
| var d3 = require('d3'), | |
| http = require('http') | |
| http.createServer(function (req, res) { | |
| // Chrome automatically sends a requests for favicons | |
| // Looks like https://code.google.com/p/chromium/issues/detail?id=39402 isn't | |
| // fixed or this is a regression. |
| #Mounting the share is a 2 stage process: | |
| # 1. Create a directory that will be the mount point | |
| # 2. Mount the share to that directory | |
| #Create the mount point: | |
| mkdir share_name | |
| #Mount the share: | |
| mount_smbfs //username:password@server.name/share_name share_name/ |
| >>> import pymongo | |
| >>> | |
| >>> db = pymongo.Connection('localhost', 27017).somedb # specify "somedb" db | |
| >>> db.serialnum.insert({"student_id": "kamiya", "seq": 0}) # add seed entry for a student "kamiya" in "serialnum" table | |
| >>> db.serialnum.find_and_modify({"student_id": "kamiya"}, update={"$inc": {"seq": 1}}, new=True)["seq"] # generate a serial number for "kamiya" | |
| >>> db.serialnum.find_and_modify({"student_id": "kamiya"}, update={"$inc": {"seq": 1}}, new=True)["seq"] # generate another serial number for "kamiya" | |
| make a function for the above operation... | |
| >>> def init_serial_number(student_id, db): |
| Open Admin command prompt: bcdedit /set {current} safeboot minimal | |
| Restart to BIOS and set to AHCI | |
| Restart. Windows will boot into safe mode and will update the driver. | |
| Open Admin command prompt: bcdedit /deletevalue {current} safeboot | |
| Restart to boot Windows Normally. |
npm users sorted by the monthly downloads of their modules, for the range May 6, 2018 until Jun 6, 2018.
Metrics are calculated using top-npm-users.
| # | User | Downloads |
|---|
file
vi /etc/environment
add these lines...
LANG=en_US.utf-8
LC_ALL=en_US.utf-8