This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Encrypted password in sec.conf | |
| /secure passphrase <pass> | |
| /secure set zncpass <pass> | |
| # Default setting for all network | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Obtained with the code written in next file | |
| emoji_grinning_face=😀 | |
| emoji_grinning_face_with_big_eyes=😃 | |
| emoji_grinning_face_with_smiling_eyes=😄 | |
| emoji_beaming_face_with_smiling_eyes=😁 | |
| emoji_grinning_squinting_face=😆 | |
| emoji_grinning_face_with_sweat=😅 | |
| emoji_rolling_on_the_floor_laughing=🤣 | |
| emoji_face_with_tears_of_joy=😂 | |
| emoji_slightly_smiling_face=🙂 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // show percentage | |
| Array.from(document.querySelectorAll('.products-wrapper .product-price')) | |
| .map(e => { | |
| var price; | |
| try { | |
| price = Object.assign( | |
| e.innerHTML.toString().match(/was (?<from>[\d\.]+)/).groups, | |
| e.innerHTML.toString().match(/>CHF<\/span> (?<to>[\d\.]+)/) | |
| .groups | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs') | |
| const path = require('path') | |
| const csvParser = require('csv-parse') | |
| const stringify = require('csv-stringify') | |
| const file = path.resolve(process.cwd(), './_data/samples.csv') | |
| /** | |
| * Actor definition class. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git commit -m [BUILD] --allow-empty |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const dir = dirQueue; | |
| await new Promise((resolve, reject) => { | |
| fs.exists(dir, exists => { | |
| if (!exists) { | |
| fs.mkdir(dir, err => { | |
| if (err) { | |
| reject(err); | |
| } | |
| resolve(dir); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var actors = require('comedy'); | |
| /** | |
| * Actor definition class. | |
| */ | |
| class MyActor { | |
| sayHello(to) { | |
| // Reply with a message, containing self PID. | |
| return `Hello to ${to} from ${process.pid}!`; |