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
use std::thread; | |
use reqwest::Client; | |
use reqwest::Proxy; | |
use std::fs; | |
use std::io::{self, BufRead}; | |
use std::sync::{Mutex, MutexGuard}; | |
use std::thread::sleep; | |
use std::time::Duration; | |
use rand::Rng; |
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
#!/bin/bash | |
function error { | |
echo -e "\\e[91m$1\\e[39m" | |
exit 1 | |
} | |
function check_internet() { | |
printf "Checking if you are online..." | |
wget -q --spider http://github.com |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
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
import { | |
useRosterState, | |
useAttendeeStatus, | |
} from 'amazon-chime-sdk-component-library-react'; | |
const useMeetingAttendees = () => { | |
const { roster } = useRosterState(); | |
return Object.values(roster).map((attendee) => { | |
const { chimeAttendeeId, externalUserId } = attendee; |
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://medium.com/@nickpeleh/dockerizing-a-node-js-web-app-with-redis-and-postgresql-60ddc697b44 |
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
/* | |
digital_root(16) | |
=> 1 + 6 | |
=> 7 | |
digital_root(942) | |
=> 9 + 4 + 2 | |
=> 15 ... | |
=> 1 + 5 | |
=> 6 |
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
/* | |
likes [] // must be "no one likes this" | |
likes ["Peter"] // must be "Peter likes this" | |
likes ["Jacob", "Alex"] // must be "Jacob and Alex like this" | |
likes ["Max", "John", "Mark"] // must be "Max, John and Mark like this" | |
likes ["Alex", "Jacob", "Mark", "Max"] // must be "Alex, Jacob and 2 others like this" | |
*/ | |
function likes(names) { | |
return { |
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
//ATCGCAT => TAGCGTA | |
// BEST | |
function DNAStrand(dna) { | |
return dna.replace(/./g, function(c) { | |
return DNAStrand.pairs[c] | |
}) | |
} | |
DNAStrand.pairs = { |
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 path = require("path"); | |
const merge = require("webpack-merge"); | |
const sass = require("./webpack/sass"); | |
const HtmlWebpackPlugin = require("html-webpack-plugin"); | |
const HtmlWebpackPluginConfig = new HtmlWebpackPlugin({ | |
template: "./public/index.html", | |
filename: "index.html", | |
inject: "body" | |
}); |
NewerOlder