Skip to content

Instantly share code, notes, and snippets.

View us's full-sized avatar
🍁
Working from deepest dream.

Recep S us

🍁
Working from deepest dream.
View GitHub Profile
@lorey
lorey / markdown_to_text.py
Last active January 20, 2026 14:20
Markdown to Plaintext in Python
from bs4 import BeautifulSoup
from markdown import markdown
import re
def markdown_to_text(markdown_string):
""" Converts a markdown string to plaintext """
# md -> html -> text since BeautifulSoup can extract text cleanly
html = markdown(markdown_string)
@oeway
oeway / imageUtils.py
Last active May 8, 2024 14:21
Improved image transform functions for dense predictions (for pytorch, keras etc.)
import numpy as np
import scipy
import scipy.ndimage
from scipy.ndimage.filters import gaussian_filter
from scipy.ndimage.interpolation import map_coordinates
import collections
from PIL import Image
import numbers
__author__ = "Wei OUYANG"
===============================================================================
= V I M T u t o r'a Hoş Geldiniz - Sürüm 1.5 =
===============================================================================
Vim, bu gibi bir eğitmen ile açıklanması gereken çok fazla komut barındıran,
oldukça kuvvetli bir metin düzenleyicidir. Bu eğitmen Vim'i çok amaçlı bir
düzenleyici olarak kolaylıkla kullanabileceğiniz yeterli sayıda komutu açıklamak
için tasarlanmıştır.
Eğitmeni tamamlama süresi yapacağınız denemelere bağlı olarak 25-30