#include <iostream> // std::cout
#include <vector> // std::vector
#include <numeric> // std::accumulate
#include <functional> // std::plus
int main() {
std::vector<int> v = {1, 2, 3, 4, 5};
std::cout << std::accumulate(v.begin(), v.end(), 0, std::plus<int>()); // 15
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
# | |
# beep sound using python | |
# ----------------------- | |
# | |
# reference | |
# --------- | |
# * extract audio sample from wave file as numpy.array | |
# https://stackoverflow.com/a/54174291/14429185 | |
# | |
# from scipy.io import wavfile |
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
import argparse | |
from pathlib import Path | |
from time import sleep | |
import requests | |
from bs4 import BeautifulSoup, element | |
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options |
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
""" | |
Usage: | |
- Linux: `python3 read_medium.py MEDIUM_URL` | |
- Windows: `python read_medium.py MEDIUM_URL` | |
""" | |
import sys | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.