$ npm config set proxy http://localhost:3128
$ npm config set https-proxy http://localhost:3128
This config is great for SquidMan app.
| function codePointLength(text) { | |
| let result = text.match(/[\s\S]/gu); | |
| return result ? result.length : 0; | |
| } | |
| console.log(codePointLength("abc")); // 3 | |
| console.log(codePointLength("𠮷bc")); // 3 |
| https://docs.nginx.com/nginx/deployment-guides/node-js-load-balancing-nginx-plus/ | |
| https://mazira.com/blog/introduction-load-balancing-nodejs-2 |
$ npm config set proxy http://localhost:3128
$ npm config set https-proxy http://localhost:3128
This config is great for SquidMan app.
| https://www.linode.com/docs/tools-reference/linux-users-and-groups/ |
| --> First Install Ionic and Cordova | |
| npm i ionic cordova -g // this will install ionic cli and cordova (to convert to android and ios) | |
| --> To Start | |
| ionic start "proj name" type | |
| cd proj folder | |
| --> To Start | |
| ionic serve |
| https://www.linuxhelp.com/how-to-check-and-set-timezone-in-ubuntu/ | |
| dpkg-reconfigure tzdata | |
| A window opens --> select region --> select area |
| http://expressjs.com/en/guide/error-handling.html |
| var page = require('webpage').create(), | |
| system = require('system'), | |
| address, output, size; | |
| address = system.args[1]; | |
| output = system.args[2]; | |
| page.viewportSize = { width: 2000 height: 600 }; | |
| if (system.args.length === 3 && system.args[1].substr(-4) === ".pdf") { | |
| size = system.args[2].split('*'); | |
| import { Directive, ElementRef, HostListener, Input } from '@angular/core'; | |
| @Directive({ | |
| selector: '[OnlyNumber]' | |
| }) | |
| export class OnlyNumber { | |
| constructor(private el: ElementRef) { } | |
| @Input() OnlyNumber: boolean; |
| /** | |
| * Mark and Sweep Garbage Collection technique. | |
| * MIT Style License | |
| * by Dmitry Soshnikov | |
| */ | |
| // This diff describes the simplest version of mark and sweep | |
| // GC in order to understand the basic idea. In real practice the | |
| // implementation can be much tricker and optimized. |