- tạo payment request
let paymentReq = new PaymentRequest([paymentMethod], details, options)
paymentMethod
: app defineddetails
: popup for user selectoptions
: app defined
This file contains 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
use('test'); | |
const aggregation = [ | |
// 32. Write a MongoDB query to find the restaurant name, borough, longitude and latitude and cuisine for those restaurants which contain 'Mad' as first three letters of its name. Go to the editor | |
// 31. Write a MongoDB query to find the restaurant name, borough, longitude and attitude and cuisine for those restaurants which contains 'mon' as three letters somewhere in its name. Go to the editor | |
// 30. Write a MongoDB query which will select the restaurant Id, name and grades for those restaurants which returns 0 as a remainder after dividing the score by 7. Go to the editor |
This file contains 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
let canvas = document.querySelector('#canvas'); // id of canvas element | |
let ctx = canvas.getContext('2d') | |
ctx.lineWidth = 10; | |
ctx.lineCap = "round" | |
let process = 0 | |
let middle = canvas.width * 0.5; | |
function draw(process) { | |
console.log(process) |
This file contains 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
/* | |
USE LIBRARY | |
*/ | |
// b1: use library LiquidCrystal | |
#import <LiquidCrystal.h> | |
// b2: khởi tạo biến chứa thông tin các pin | |
// chọn 1 trong các khởi tạo sau: |
This file contains 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
import {app, BrowserWindow, net} from 'electron'; | |
function _setup() { | |
// ... | |
/** get data for app */ | |
let _strResult = ''; | |
let jsonResult; | |
let req = net.request({url: 'https://jsonplaceholder.typicode.com/users'}) | |
.on('response', res => { |
This file contains 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
openssl req -sha256 -nodes -newkey rsa:2048 -nodes -keyout myserver.key -out server.csr -subj "/C=GB/ST=Yorks/L=York/O=MyCompany Ltd./OU=IT/CN=mysubdomain.mydomain.com" |
This file contains 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
{"lastUpload":"2021-05-01T20:02:30.246Z","extensionVersion":"v3.4.3"} |