Skip to content

Instantly share code, notes, and snippets.

@MotionDesignStudio
MotionDesignStudio / ascii_movie_image_ver_1.py
Last active January 3, 2024 03:26
Python ASCII Video And ASCII Image Creator
#!/usr/bin/env python
import sys
import cv2
import subprocess
from subprocess import call
import aalib
import Image
anonymous
anonymous / semtex.c
Created May 22, 2013 04:01
/*
* linux 2.6.37-3.x.x x86_64, ~100 LOC
* gcc-4.6 -O2 semtex.c && ./a.out
* 2010 sd@fucksheep.org, salut!
*
* update may 2013:
* seems like centos 2.6.32 backported the perf bug, lol.
* jewgold to 115T6jzGrVMgQ2Nt1Wnua7Ch1EuL9WXT2g if you insist.
*/
@JaHIY
JaHIY / htmlparser.py
Created September 10, 2012 15:13
python:htmlparser
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import html.parser
class ContentParser(html.parser.HTMLParser):
def __init__(self, begin_tag, stop_tag):
html.parser.HTMLParser.__init__(self)
tag_temple = ('type', 'name', 'attrs', 'contains_me')
self.begin_tag = dict(zip(tag_temple, begin_tag))
@JaHIY
JaHIY / fullfeed.py
Created September 5, 2012 08:33
python:hexieshe.com fullfeed
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib.request
import html.parser
import xml.etree.ElementTree
import queue
import threading
import functools
import os