View example-landmark.json
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
{ | |
"IMG_20200709_181039_2.jpg": { | |
"width": 3024, | |
"height": 4032, | |
"fullFaceDescriptions": [ | |
{ | |
"detection": { | |
"_imageDims": { "_width": 3024, "_height": 4032 }, | |
"_score": 0.756403923034668, | |
"_classScore": 0.756403923034668, |
View gist:c10cc89b07fa752fac0222fc9ca4eb9e
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 clickButton = () => { | |
let button = document.querySelector('#app > div > div.FocusContainer > div > div > div.MatchingUserEvaluationHandler > div.Submit > div > div.button.apply') | |
button.click() | |
} | |
let intervalID | |
let startAutomaticInterval = (seconds) => { | |
if(intervalID) { clearTimeout(intervalID) } | |
intervalID = setInterval(clickButton, seconds*1000) | |
} |
View LRU Cache.js
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
function ListNode(key, value) { | |
this.value = value | |
this.key = key | |
this.next = this.prev = null | |
} | |
/** | |
* @param {number} capacity | |
*/ | |
var LRUCache = function(capacity) { |
View LRU Cache.js
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
function ListNode(key, value) { | |
this.value = value | |
this.key = key | |
this.next = this.prev = null | |
} | |
/** | |
* @param {number} capacity | |
*/ | |
var LRUCache = function(capacity) { |
View nodemon.json
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
{ | |
"events": { | |
"restart": "kill-port 3010", | |
"crash": "kill-port 3010" | |
}, | |
"delay": "1500" | |
} |
View async-http.js
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
/* | |
* Complete the function below. | |
* Instead of returning the answer, log the answer to the console. | |
* https://jsonmock.hackerrank.com/api/countries/search?name= | |
*/ | |
function getCountries(s, p) { | |
let answer = 0; | |
const https = require("https"); | |
let base_url = `https://jsonmock.hackerrank.com/api/countries/search`; |
View 102. Binary Tree Level Order Traversal.js
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
/** | |
* Definition for a binary tree node. | |
* function TreeNode(val) { | |
* this.val = val; | |
* this.left = this.right = null; | |
* } | |
*/ | |
/** | |
* @param {TreeNode} root | |
* @return {number[][]} |
View permutations.js
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
/** | |
* @param {number[]} nums | |
* @return {number[][]} | |
*/ | |
function swap(nums, i, j) { | |
let temp = nums[i] | |
nums[i] = nums[j] | |
nums[j] = temp | |
} | |
const indent = (length) => { |
View gist:edf8fa1d5fc9ee21d4818e80c125ebaa
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
code --install-extension christian-kohler.npm-intellisense | |
code --install-extension christian-kohler.path-intellisense | |
code --install-extension CoenraadS.bracket-pair-colorizer-2 | |
code --install-extension dbaeumer.vscode-eslint | |
code --install-extension dracula-theme.theme-dracula | |
code --install-extension dsznajder.es7-react-js-snippets | |
code --install-extension eamodio.gitlens | |
code --install-extension esbenp.prettier-vscode | |
code --install-extension felipecaputo.git-project-manager | |
code --install-extension formulahendry.auto-close-tag |
View flattenArray.js
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
const flatten = list => list.reduce( | |
(a, b) => a.concat(Array.isArray(b) ? flatten(b) : b), [] | |
); |
NewerOlder