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
//https://www.interviewcake.com/question/python/inflight-entertainment | |
const flightLength = 5 * 60; //minutes | |
const movieLengths = [30, 15, 12, 90, 17, 45] // movies length in minutes | |
function twoMoviesInListEqualFlightLength(flightLength, movieLengths) { | |
let needMovieOfLength = {}; | |
for (let i = 0; i < movieLengths.length; i++) { | |
let mlength = movieLengths[i]; | |
if (mlength in needMovieOfLength) { |
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 | |
alias git-clean="git branch --merged | grep -v "\*" | xargs -n 1 git branch -d" | |
alias up="git pull && npm i && npm run migrate" | |
alias gs="git status" | |
# open applications | |
alias code='open $@ -a "Visual Studio Code"' | |
# show or hide hidden files | |
alias showfiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app' |
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
linkedin.com##aside.scaffold-layout__aside[aria-label="LinkedIn News"] | |
linkedin.com##.news-module__tooltip-content | |
linkedin.com##aside:has-text("LinkedIn News") | |
linkedin.com##[id*="feed-right-rail"] | |
linkedin.com##div[class*="news-module"] | |
linkedin.com##aside[class*="scaffold-layout"] | |
linkedin.com##div[class*="artdeco-hoverable-content"] |
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
linkedin.com##aside.scaffold-layout__aside[aria-label="LinkedIn News"] | |
linkedin.com##div[class^="scaffold-finite-scroll"] |