Skip to content

Instantly share code, notes, and snippets.

View BenjaminHoegh's full-sized avatar

Benjamin Høegh BenjaminHoegh

View GitHub Profile
@BenjaminHoegh
BenjaminHoegh / email_sender.py
Created March 14, 2022 18:12 — forked from ninapavlich/email_sender.py
Convert HTML emails with python
from bs4 import BeautifulSoup
import os
import re
import requests
import urlparse
import smtplib
from smtplib import SMTP
from smtplib import SMTP_SSL
from smtplib import SMTPAuthenticationError
@BenjaminHoegh
BenjaminHoegh / pyvenvex.py
Created November 4, 2021 17:17 — forked from vsajip/pyvenvex.py
A script which demonstrates how to extend Python 3.3's EnvBuilder, by installing setuptools and pip in created venvs. This functionality is not provided as an integral part of Python 3.3 because, while setuptools and pip are very popular, they are third-party packages.The script needs Python 3.3 or later; invoke it using"python pyvenvex.py -h"fo…
#
# Copyright (C) 2013-2020 Vinay Sajip. New BSD License.
#
import os
import os.path
from subprocess import Popen, PIPE
import sys
from threading import Thread
from urllib.parse import urlparse
from urllib.request import urlretrieve
@BenjaminHoegh
BenjaminHoegh / dash-doggybag.py
Created June 21, 2019 13:22 — forked from lucasg/dash-doggybag.py
Bulk downloader for dash docsets (official and user contributed)
#!/usr/bin/env python3
import sys
import json
import os
import os.path
import shutil
import logging
import tempfile
import glob
import argparse
@BenjaminHoegh
BenjaminHoegh / Poke.py
Created May 15, 2019 07:35 — forked from cnmcgrath/Poke.py
simple facebook poke bot
#! /usr/bin/python
Facebook_Username = "your_email"
Facebook_Password = "your_password"
from sys import exit, stdout
import traceback
import mechanize
import time
import os
@BenjaminHoegh
BenjaminHoegh / touch.js
Created December 18, 2018 13:51 — forked from vitalyrotari/touch.js
jQuery Touch Gestures
jQuery Touch Gestures ported from QUOjs
@see http://quojs.tapquo.com/
Version 1.1
-- @add singleTap event
-- @fix doubleTap event
-- @fix hold event
@BenjaminHoegh
BenjaminHoegh / TaskListParsedown.php
Created June 8, 2018 16:36 — forked from UndefinedOffset/TaskListParsedown.php
Override's some of Parsedown's features to add support for github style task lists. You must build your own serverside & client side components for updating the markdown. The value of the checkbox is it's index of the checkbox based on all of the checkboxes found in the markdown.
<?php
/**
* Override's some of Parsedown's features to add support for github style task lists.
* You must build your own serverside & client side components for updating the markdown.
* The value of the checkbox is it's index of the checkbox based on all of the checkboxes found in the markdown.
* @see https://github.com/erusev/parsedown
*/
class TaskListParsedown extends Parsedown {
protected $taskListIndex=0;
@BenjaminHoegh
BenjaminHoegh / README.md
Created April 26, 2018 21:12 — forked from jookyboi/README.md
Example using the marked.js README

marked

A full-featured markdown parser and compiler, written in javascript. Built for speed.

Benchmarks

node v0.4.x

$ node test --bench