aly / emojimashup.json
0 likes
0 forks
1 files
Last active
a list containing twitter image urls and description of contents. from @emojimashupbot
| 1 | [ |
| 2 | [ |
| 3 | "EnM5k0mWMAM624F", |
| 4 | "\ud83d\ude44 rolling-eyes + \ud83d\ude0d hearts-eyes" |
| 5 | ], |
| 6 | [ |
| 7 | "EnMr17sXEAwaQL8", |
| 8 | "\ud83d\ude08 demon-smiling + \ud83c\udf1d full-moon + \ud83d\udd76\ufe0f sunglasses" |
| 9 | ], |
| 10 | [ |
aly / qlocktwo.py
0 likes
0 forks
1 files
Last active
a rough python mockup implementation of the qlocktwo clock
| 1 | from datetime import datetime |
| 2 | from textwrap import wrap |
| 3 | |
| 4 | hour = ["twelve", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven"] |
| 5 | letters = "ITLISASAMPMACQUARTERDCTWENTYFIVEXHALFSTENFTOPASTERUNINEONESIXTHREEFOURFIVETWOEIGHTELEVENSEVENTWELVETENSEOCLOCK" # 110 letters |
| 6 | |
| 7 | def get_led_matrix(): |
| 8 | out = "0" * len(letters) |
| 9 | time = get_time_in_words() |
| 10 | for word in time.split(): |
aly / lawtechie-story-links.py
0 likes
0 forks
1 files
Last active
A script to parse lawtechie's post history and show, for each story that is linked to in another story, which stories link to it. Used for collecting multiple parts together. Does not show story singletons. More parsing work to do in the future
| 1 | #!/usr/bin/env python3 |
| 2 | from requests import get |
| 3 | from json import load,dump,dumps |
| 4 | from collections import defaultdict |
| 5 | from markdown import markdown |
| 6 | from lxml import etree |
| 7 | from time import sleep |
| 8 | |
| 9 | html = False |
| 10 | url = "https://www.reddit.com/search.json" |
aly / cahdiscord.py
0 likes
0 forks
1 files
Last active
A brief musing on the plausibility of a cards against humanity bot for discord
| 1 | #!/usr/bin/env python |
| 2 | import discord |
| 3 | from json import load |
| 4 | from random import shuffle |
| 5 | |
| 6 | client = discord.Client() |
| 7 | |
| 8 | # https://github.com/crhallberg/json-against-humanity |
| 9 | with open("full.md.json") as f: |
| 10 | cards = load(f) |
aly / ffmpeg_flask_stream.py
0 likes
0 forks
1 files
Last active
A simple flask server to encode a specified video/audio file and stream the chunks with a generator
| 1 | #!/usr/bin/env python3 |
| 2 | from subprocess import Popen, PIPE |
| 3 | from flask import Flask, Response |
| 4 | import os.path |
| 5 | |
| 6 | app = Flask(__name__) |
| 7 | PREFIX = "/media/storage" |
| 8 | FORMAT = ("mp3", "audio/mpeg") |
| 9 | |
| 10 | def ffmpeg_generator(fn): |