Skip to content

Instantly share code, notes, and snippets.

View theCompanyDream's full-sized avatar
🌮

Timothy Brantley II theCompanyDream

🌮
View GitHub Profile
@theCompanyDream
theCompanyDream / find_files.py
Last active February 20, 2025 20:52
SWE Contractor test
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
@theCompanyDream
theCompanyDream / Dockerfile
Last active May 5, 2020 14:14
Gatsby Docker Mulitstage
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 \
@theCompanyDream
theCompanyDream / BF.java
Created June 12, 2012 13:06 — forked from lawrancej/BF.java
Brainf**
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);