I hereby claim:
- I am gasman on github.
- I am mattwestcott (https://keybase.io/mattwestcott) on keybase.
- I have a public key whose fingerprint is 4D33 A325 2D66 7384 42E7 FF9E 1A92 6186 FECD 38FE
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
import wave | |
from io import BytesIO | |
from PIL import Image | |
wave_buffer = BytesIO() | |
data_len = 0 | |
with wave.open('nevergonna-1920.wav', 'rb') as wav: |
# Encode inputfile.tar.gz as a series of video frames | |
# Frames are written to frames/frameNNNN.png | |
from PIL import Image | |
with open('inputfile.tar.gz', 'rb') as f: | |
data = f.read() | |
WIDTH = 120 | |
HEIGHT = 90 | |
CHUNK_SIZE = int((WIDTH * HEIGHT) / 8) |
On a real-world site with 3058 HTML fragments | |
with richtext-benchmark/original: | |
1. 13.098440 | |
2. 14.320241 | |
3. 13.525923 | |
with richtext-benchmark/loic: |
from collections import defaultdict | |
from collections.abc import Mapping | |
import html | |
import re | |
import warnings | |
from django.utils.html import conditional_escape, format_html | |
from django.utils.safestring import mark_safe |
from __future__ import absolute_import, unicode_literals | |
from bs4 import BeautifulSoup, Tag | |
from django.db import models | |
from wagtail.wagtailadmin.edit_handlers import StreamFieldPanel | |
from wagtail.wagtailcore import blocks | |
from wagtail.wagtailcore.fields import StreamField | |
from wagtail.wagtailcore.models import Page | |
from wagtail.wagtailcore.rich_text import RichText |
from django.db import models | |
from django.utils.translation import ugettext_lazy as _ | |
from django.utils.encoding import python_2_unicode_compatible | |
from modelcluster.models import ClusterableModel | |
from modelcluster.fields import ParentalKey | |
from wagtail.wagtailcore.models import Orderable | |
from wagtail.wagtailadmin.edit_handlers import FieldPanel, InlinePanel | |
from wagtail.wagtailimages.edit_handlers import ImageChooserPanel |
from __future__ import unicode_literals | |
from django.db import models | |
from wagtail.wagtailcore.blocks import StructBlock, CharBlock, URLBlock, StreamBlock | |
from wagtail.wagtailcore.models import Page | |
from wagtail.wagtailcore.fields import StreamField, RichTextField | |
from wagtail.wagtailimages.blocks import ImageChooserBlock | |
from wagtail.wagtailimages.edit_handlers import ImageChooserPanel | |
from wagtail.wagtailadmin.edit_handlers import FieldPanel, MultiFieldPanel, \ |
I hereby claim:
To claim this, I am signing this object:
import six | |
class ModelBase(type): | |
def __new__(meta, name, bases, dct): | |
print("ModelBase.__new__(%s)" % name) | |
result = super(ModelBase, meta).__new__(meta, name, bases, dct) | |
print("/ModelBase.__new__(%s)" % name) | |
return result | |
def __init__(cls, name, bases, dct): |
; Vortex Tracker II PT3 playback routine - written by Sergey Bulba | |
; usage: | |
; ld hl,address_of_pt3_data | |
; call pt3_init | |
; then every 1/50 second: | |
; call play | |
; to silence: | |
; call mute |