#LESSONS:
They do not do DEEP copy https://jsfiddle.net/hao_nguyen/962umbeq/
| if (req.method === 'OPTIONS') { | |
| console.log('!OPTIONS'); | |
| var headers = {}; | |
| // IE8 does not allow domains to be specified, just the * | |
| // headers["Access-Control-Allow-Origin"] = req.headers.origin; | |
| headers["Access-Control-Allow-Origin"] = "*"; | |
| headers["Access-Control-Allow-Methods"] = "POST, GET, PUT, DELETE, OPTIONS"; | |
| headers["Access-Control-Allow-Credentials"] = false; | |
| headers["Access-Control-Max-Age"] = '86400'; // 24 hours | |
| headers["Access-Control-Allow-Headers"] = "X-Requested-With, X-HTTP-Method-Override, Content-Type, Accept"; |
| start ssh-agent | |
| start code <project folder path> |
#LESSONS:
They do not do DEEP copy https://jsfiddle.net/hao_nguyen/962umbeq/
#LESSONS:
They do not do DEEP copy
https://jsfiddle.net/hao_nguyen/962umbeq/
| <application | |
| ... | |
| android:usesCleartextTraffic="true" | |
| ... | |
| /> |
remove .sv folder.
release mode$ <Drive>\Program Files (x86)\Android\android-sdk\build-tools\28.0.3\zipalign
-v -p 4 <apk input> <apk output dir & name>
Demo:
EX: extract text in between title tags:
const htmlText = '<html><title>Example Title</title><body>abc</body></html>`
const regex = /(?<=<title>).*?(?=\</title>)/;
const matches = htmlText.match(regex);
const title = matches && matches.shift();
| function writeFile(fileName, data, indent = 2) { | |
| require('fs').writeFile(`${fileName}`, JSON.stringify(data, '', indent), (err) => { | |
| if (err) { | |
| return console.log(err); | |
| } | |
| console.log(`Done "${fileName}".`); | |
| }); | |
| } |