Skip to content

Instantly share code, notes, and snippets.

View JesperDramsch's full-sized avatar
🤓
This mind is intentionally left blank.

Jesper Dramsch JesperDramsch

🤓
This mind is intentionally left blank.
View GitHub Profile
@JesperDramsch
JesperDramsch / markdown_to_bbcode.py
Last active December 22, 2015 18:59 — forked from masukomi/markdown_to_bbcode.py
Included File Operation
import re
def markdown_to_bbcode(s):
links = {}
codes = []
def gather_link(m):
links[m.group(1)]=m.group(2); return ""
def replace_link(m):
return "[url=%s]%s[/url]" % (links[m.group(2) or m.group(1)], m.group(1))
def gather_code(m):
@JesperDramsch
JesperDramsch / MakeMediumReadadableUserscript.user.js
Created August 4, 2020 16:02 — forked from luke3butler/MakeMediumReadadableUserscript.user.js
Userscript version of the MMRA (Make Medium Readable Again) Chrome extension
// ==UserScript==
// @name Make Medium Readable Userscript
// @namespace http://make.medium.readable.again
// @version 0.1
// @description https://github.com/thebaer/MMRA
// @author luke3butler (Credits to Matt Baer)
// @match *://*/*
// @grant none
// ==/UserScript==
@JesperDramsch
JesperDramsch / news-feeds-eradicator-linkedin.user.js
Last active February 17, 2024 14:31 — forked from miglen/news-feeds-eradicator-linkedin.user.js
News Feed Eradicator for LinkedIn
// ==UserScript==
// @name News Feed Eradicator for LinkedIn
// @namespace http://miglen.com/
// @version 0.5
// @description News Feed Eradicator for LinkedIn
// @author Miglen Evlogiev (hi@miglen.com)
// @match https://www.linkedin.com/feed/
// @grant none
// @downloadURL https://gist.github.com/JesperDramsch/839365c85133927f694bf5113c77a2f1/raw/news-feeds-eradicator-linkedin.user.js
// @updateURL https://gist.github.com/JesperDramsch/839365c85133927f694bf5113c77a2f1/raw/news-feeds-eradicator-linkedin.user.js
@JesperDramsch
JesperDramsch / organize.py
Last active April 3, 2024 13:42 — forked from sqordfish/organize.py
Python script for organizing files in windows into multiple folders by file type. I made this primarily to organize my downloads folder.
# Author: Jacob Rust
# Modified: Jesper Dramsch
# Date: 7/8/2013
# Description:This script organizes downloaded files into separate folders depending
# on the file type. This was made for windows systems.
# Download directory should be the first command line argument
# New file types can be added to the dictionary in the main method
# Usage: python organize.py
import hashlib