var intersect = function(nums1, nums2) {
const result = [];
hashMap = {};
for(let i=0; i<nums1.length; i++) {
// console.log(num);
if(hashMap[nums1[i]]) {
hashMap[nums1[i]] +=1;
} else {
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 Scene = require("Scene"); | |
const NativeUI = require("NativeUI"); | |
const Textures = require("Textures"); | |
const Materials = require("Materials"); | |
(async function () { | |
const button1 = await Textures.findFirst("texture0"); | |
const button2 = await Textures.findFirst("texture1"); | |
const button3 = await Textures.findFirst("texture2"); |
$ openssl genrsa 2048 > server.key
$ openssl req -new -key server.key > server.csr
$ openssl x509 -days 3650 -req -signkey server.key < server.csr > server.crt
ssl
server.key
server.csr
server.crt
Most active GitHub users in Worldwide https://commits.top/worldwide.html
42/256. 07/16/2020
https://github.com/stefanprodan
https://github.com/driesvints
https://github.com/1995parham
https://github.com/antfu
const originalArray = [1, 2, 3, 4, 1, 2, 3, 4];
const uniqueArray = new Set(originalArray);
console.log(uniqueArray);
const originalArray = [1, 2, 3, 4, 1, 2, 3, 4]
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 num = 1; | |
const ret = ( '000' + num ).slice( -3 ); | |
console.log(ret); |
const fibonacci = n =>
Array.from({ length: n }).reduce(
(acc, val, i) => acc.concat(i > 1 ? acc[i - 1] + acc[i - 2] : i),
[]
);
fibonacci(5);
def factorial(n):
if n > 1:
return n * factorial(n-1)
else:
return 1
-
Date.getTime() Get the time in milliseconds elapsed since .
-
Date.getFullYear() Get the four-digit year ().
-
Date.getMonth() Get the Date object's month as a zero-indexed number ().
-
Date.getDate()