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
from bs4 import BeautifulSoup | |
import requests | |
def find_files(url): | |
soup = BeautifulSoup(requests.get(url).text, 'html.parser') | |
for a in soup.find_all('a'): | |
href = a.get('href') | |
# Check if href exists and does not end with a slash (i.e., it's likely a file) | |
if href and not href.endswith('/') and href != "../": | |
yield href |
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
FROM node:13.6.0-alpine as builder | |
ENV APP_ROOT /your/dir | |
WORKDIR ${APP_ROOT} | |
RUN apk update && apk add build-base \ | |
autoconf \ | |
automake \ | |
libtool \ |
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 java.io.IOException; | |
import java.util.LinkedList; | |
public class BF { | |
private interface Visitor { | |
void visit (Loop loop); | |
void visit (Left left); | |
void visit (Right right); | |
void visit (Increment increment); | |
void visit (Decrement decrement); |