Zoomable/rotatable world globe that uses orthographic projection. Drag behavior is enhanced as described here: https://www.jasondavies.com/maps/rotate/
Performance is not good due to redrawing whole world upon zoom/drag.
Zoomable/rotatable world globe that uses orthographic projection. Drag behavior is enhanced as described here: https://www.jasondavies.com/maps/rotate/
Performance is not good due to redrawing whole world upon zoom/drag.
if (!window.tweets) window.tweets = {}; | |
/** | |
* @param tweetElem {HTMLElement} | |
*/ | |
window.parseTweetElement = (tweetElem) => { | |
const isQuote = !!Array.from(tweetElem.querySelectorAll("span")).find( | |
(p) => p.textContent === "Quote" | |
); |
const vision = require("@google-cloud/vision"); | |
const puppeteer = require("puppeteer"); | |
const fs = require("fs-extra"); | |
const URL = "https://YOUR_EMBASSY_URL_AND_THE_PAGE"; | |
const browser = await puppeteer.connect({ | |
browserWSEndpoint: `ws://browserless:3000?token=TOKEN_HERE`, | |
args: [`--window-size=1024,860`], | |
defaultViewport: { |
We have a list of valid words, and a long string of text without whitespace. All characters are UTF8, a-z.
Please write a function that finds if the string can be composed of valid words, and if so, adds whitespace between them. Not all words have to be used, but words can be used multiple times. If it's not possible, return empty string and a descriptive error.
The words on validWords
do not overlap.
func addWhitespace(input string, validWords []string) (string, error)
/** | |
Imagine some photo file names with lowercase letters and/or digits. We want to sort them as a human would consider natural with a function with the following signature. | |
// return 0 if a = b, <0 if a < b, >0 if a > b | |
function compareNaturally(a: string, b: string): number { | |
//TODO implement | |
} |
const _ = require('lodash'); | |
/** | |
Write a function checking that the given string is valid. We consider a string to be valid if all the characters of the string have exactly the same frequency. | |
Examples: | |
"aabbcc" is a valid string | |
"aabbccc" is an invalid string | |
*/ |
sudo rm /var/lib/snapd/cache/* | |
sudo journalctl --vacuum-size=10M | |
sudo npm cache clean --force | |
sudo yarn cache clean |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
echo ' | |
FROM ubuntu | |
RUN apt update | |
RUN apt install autossh -y | |
RUN ssh-agent bash | |
ENTRYPOINT ["/usr/bin/autossh", "-M", "0", "-T", "-N", "-oStrictHostKeyChecking=no", "-oServerAliveInterval=180", "-oUserKnownHostsFile=/dev/null", "-D","0.0.0.0:8888"] | |
' > Dockerfile ; \ | |
project="ssh-tunnel" ; \ | |
sudo docker rmi ${project} --force ; \ | |
sudo docker build -t ${project} . ; \ |
#!/bin/bash | |
### VARIABLES | |
base_data_path="/home/docker" | |
mongo_pass="PASSSS" | |
###### install resolvconf - to use shecan smart dns |