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 rembg import remove | |
from PIL import Image | |
## Path for input and output image | |
input_img = 'spiderman_with_bg.jpeg' | |
output_img = 'spiderman_without_bg.png' | |
## loading and removing background | |
inp = Image.open(input_img) | |
output = remove(inp) |
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 PyPDF2 | |
import subprocess | |
# Open the PDF file (Enter Path To Your PDF) | |
file = open('fullnotes_lagrangiano_modelo_estandar.pdf', 'rb') | |
readpdf = PyPDF2.PdfReader(file) | |
# Iterate over each page in the PDF | |
for pagenumber in range(len(readpdf.pages)): | |
# Extract text from the page |
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 webbrowser | |
with open('links.txt') as file: | |
links = file.readlines() | |
for link in links: | |
link = link.strip() # Remove any whitespace or newline characters | |
print(link) | |
webbrowser.open(link) # Use the actual link, not the string 'link' |
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 pandas as pd | |
from faker import Faker | |
import random | |
fake = Faker() | |
def generate_fake_data(num_entries=10): | |
data = [] |
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 os | |
import subprocess | |
def analyze_code(directory): | |
# List Python files in the directory | |
python_files = [file for file in os.listdir(directory) if file.endswith('.py')] | |
if not python_files: | |
print("No Python files found in the specified directory.") | |
return |
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
https://github.com/openai/whisper | |
(whisper_env) ┌<▸> ~/g/openai-whisper-test | |
└➤ ffmpeg -f avfoundation -list_devices true -i "" | |
ffmpeg version 7.0.1 Copyright (c) 2000-2024 the FFmpeg developers | |
built with Apple clang version 15.0.0 (clang-1500.3.9.4) | |
configuration: --prefix=/usr/local/Cellar/ffmpeg/7.0.1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable |
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
#define BUF_SIZE 1024 | |
#define L_BACKLOG 5 | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> |
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
# First stage, build the custom JRE | |
FROM eclipse-temurin:17-jdk-alpine AS jre-builder | |
# Set environment variables | |
ENV MAVEN_VERSION=3.8.6 | |
ENV MAVEN_HOME=/usr/lib/mvn | |
ENV PATH=$MAVEN_HOME/bin:$PATH | |
# Install necessary packages and Maven | |
RUN apk update && \ |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
#define BUFFER_SIZE 1024 |
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
SHODAN_API_KEY= |
NewerOlder