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
| <!-- This is a Node+WebSocket powered demo to sync videos | |
| across different browsers. This file is the client, | |
| the other one is the Node server. Powered by Node and | |
| http://github.com/miksago/node-websocket-server --> | |
| <style> | |
| .inactive { display: none; } | |
| .active { display: block; } | |
| </style> | |
| <script> |
| # Add correct content-type for fonts | |
| AddType application/vnd.ms-fontobject .eot | |
| AddType font/ttf .ttf | |
| AddType font/otf .otf | |
| AddType font/x-woff .woff | |
| AddType image/svg+xml .svg | |
| # Compress compressible fonts | |
| AddOutputFilterByType DEFLATE font/ttf font/otf image/svg+xml |
| yum groupinstall "Development Tools" |
| /* Arduino USB Keyboard HID demo | |
| * Cut/Copy/Paste Keys | |
| */ | |
| #define KEY_LEFT_CTRL 0x01 | |
| #define KEY_LEFT_SHIFT 0x02 | |
| #define KEY_RIGHT_CTRL 0x10 | |
| #define KEY_RIGHT_SHIFT 0x20 | |
| uint8_t buf[8] = { |
| <?php | |
| $mongodb = new Mongo("mongodb://username:password@localhost/database_name"); | |
| $database = $mongodb->database_name; | |
| $collection = $database->collection; | |
| $page = isset($_GET['page']) ? (int) $_GET['page'] : 1; | |
| $limit = 12; | |
| $skip = ($page - 1) * $limit; | |
| $next = ($page + 1); | |
| $prev = ($page - 1); |
| # Paths ---------------------------------------------- | |
| set realname = "Damir Hasakovic" | |
| set imap_user = 'damir@iplay.se' | |
| set from = "damir@iplay.se" | |
| set spoolfile = imaps://imap.gmail.com:993/INBOX | |
| set smtp_url = "smtp://damir@iplay.se@smtp.gmail.com:587/" | |
| set folder = "imaps://imap.gmail.com:993" | |
| set record="+[Gmail]/Sent Mail" | |
| set postponed="+[Gmail]/Drafts" | |
| set header_cache = ~/.mutt/cache/headers # store headers |
| #!/usr/bin/env ruby | |
| # | |
| require 'fileutils' | |
| fswebcam_path = `which fswebcam`.strip | |
| exit 0 if fswebcam_path.empty? | |
| print "Snapshotting your pretty mug..." |
| /** | |
| * Return zodiac sugn by month and day | |
| * | |
| * @param day | |
| * @param month | |
| * @return {string} name of zodiac sign | |
| */ | |
| function getZodiacSign(day, month) { | |
| var zodiacSigns = { |
| var app = require('express')(), | |
| server = require('http').createServer(app), | |
| io = require('socket.io').listen(server), | |
| fs = require('fs'), | |
| util = require('util'); | |
| server.listen(8080); | |
| // set transport fallback order | |
| io.set('transports', [ |