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 cheerio = require("cheerio"), | |
| fs = require("fs"); | |
| fs.readFile('bookmarks.html', "utf-8", function read(err, data) { | |
| if (err) { | |
| throw err; | |
| } | |
| var $ = cheerio.load(data); | |
| $("a").each(function(index, a) { |
| # Node-WebKit CheatSheet | |
| # Download: https://github.com/rogerwang/node-webkit#downloads | |
| # Old Versions: https://github.com/rogerwang/node-webkit/wiki/Downloads-of-old-versions | |
| # Wiki: https://github.com/rogerwang/node-webkit/wiki | |
| # How: https://github.com/rogerwang/node-webkit/wiki/How-node.js-is-integrated-with-chromium | |
| # 1. Run your application. | |
| # https://github.com/rogerwang/node-webkit/wiki/How-to-run-apps |
| NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services | |
| Download the following ZIPs: | |
| ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
| Download the correct GApps for your Android version: | |
| Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip) | |
| Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip) | |
| Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) |
| If you have REST service that wanted to return both JSON & XML type, then one way is to set media type in the REST HTTP request header in "Accept" field | |
| Setting media type in HTTP header: | |
| GET /books/123 | |
| Accept: application/json (or application/xml) | |
| Other way is to set the return type in URI extensions as, | |
| GET /books/123.json - to return json format |
| var crypto = require('crypto'); | |
| var AESCrypt = {}; | |
| AESCrypt.decrypt = function(cryptkey, iv, encryptdata) { | |
| encryptdata = new Buffer(encryptdata, 'base64').toString('binary'); | |
| var decipher = crypto.createDecipheriv('aes-256-cbc', cryptkey, iv), | |
| decoded = decipher.update(encryptdata); |
| <html> | |
| <head> | |
| <title>Look at WebSQL</title> | |
| <script> | |
| // Through the code below remember essentialy there are just 3 core methods we tend to use | |
| // openDatabase | |
| // transaction | |
| // executeSql | |
| // Opening a connection |