Skip to content

Instantly share code, notes, and snippets.

@Jdsleppy
Jdsleppy / main.py
Created October 4, 2024 23:29
Scrape scimagojr.com and make a CSV of top 10 journals in each category
#!/usr/bin/env python3
## requirements.txt
# anyio==4.6.0
# beautifulsoup4==4.12.3
# certifi==2024.8.30
# h11==0.14.0
# httpcore==1.0.5
# httpx==0.27.2
# idna==3.10
@Jdsleppy
Jdsleppy / 2DPeakFinding.py
Last active March 21, 2016 01:05
2D peak finding inspired by binary search
def create_search_grid(center_point, side_length):
# Return a 3x3 grid of points, centered at center_point,
# making a square side_length tall and wide.
return grid_of_points
def stop_condition(value):
# Decide if you're at a good enough place to end the search.
# Tweak this for your own application.
return should_stop_searching