Skip to content

Instantly share code, notes, and snippets.

Avatar

Benjamin Høegh BenjaminHoegh

View GitHub Profile
@BenjaminHoegh
BenjaminHoegh / email_sender.py
Created Mar 14, 2022 — forked from ninapavlich/email_sender.py
Convert HTML emails with python
View email_sender.py
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 Nov 4, 2021 — 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…
View pyvenvex.py
#
# 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 / gist:708c78c55553c9d897ef35446c4339dd
Created Nov 11, 2020
Complete list of github markdown emoji markup 2020
View gist:708c78c55553c9d897ef35446c4339dd

Smileys & People

😀 :grinning:
😃 :smiley:
😄 :smile:
😁 :grin:
😆 :laughing:
😅 :sweat_smile:
@BenjaminHoegh
BenjaminHoegh / dash-doggybag.py
Created Jun 21, 2019 — forked from lucasg/dash-doggybag.py
Bulk downloader for dash docsets (official and user contributed)
View dash-doggybag.py
#!/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 — forked from cnmcgrath/Poke.py
simple facebook poke bot
View Poke.py
#! /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 Dec 18, 2018 — forked from vitalyrotari/touch.js
jQuery Touch Gestures
View touch.js
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 Jun 8, 2018 — 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.
View TaskListParsedown.php
<?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 Apr 26, 2018 — forked from jookyboi/README.md
Example using the marked.js README
View README.md

marked

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

Benchmarks

node v0.4.x

$ node test --bench