aly / comicviewer.html
0 likes
0 forks
1 files
Last active
A comic viewer. Edit the variables at the top of the script tag to suit your comic files. https://b303.me/concerned/
| 1 | <html> |
| 2 | <head> |
| 3 | <script> |
| 4 | // Comic Viewer by blha303 https://github.com/blha303 |
| 5 | // BSD license |
| 6 | // Please leave this header here |
| 7 | |
| 8 | // Below settings are for a folder of images named 'concerned000.jpg'-'concerned205.jpg' |
| 9 | prefix = "concerned" // Filename prefix |
| 10 | suffix = ".jpg" // Filename suffix or extension |
aly / guitartabs.html
0 likes
0 forks
1 files
Last active
A javascript thing to get guitar tab charts quickly. https://b303.me/guitartabs.html
| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <title>GuitarTabGenerator</title> |
| 6 | </head> |
| 7 | <body> |
| 8 | <form id="form"> |
| 9 | <input type="text" id="tabs" style="width:70%" value="G F# Ab C"> |
| 10 | <input type="submit"> |
aly / uketabs.html
0 likes
0 forks
1 files
Last active
A javascript thing to get ukulele tab charts quickly. https://b303.me/uketabs.html
| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <title>UkeTabGenerator</title> |
| 6 | </head> |
| 7 | <body> |
| 8 | <form id="form"> |
| 9 | <input type="text" id="tabs" style="width:70%" value="E♭|F7|B♭7|G♭" autofocus> |
| 10 | <input type="submit"> |
aly / neuralnet.py
0 likes
0 forks
1 files
Last active
I wanted to try my hand at making a neural net kinda thingy
| 1 | from __future__ import print_function |
| 2 | import sys,random |
| 3 | |
| 4 | # http://stackoverflow.com/a/31505798 |
| 5 | import re |
| 6 | caps = "([A-Z])" |
| 7 | prefixes = "(Mr|St|Mrs|Ms|Dr)[.]" |
| 8 | suffixes = "(Inc|Ltd|Jr|Sr|Co)" |
| 9 | starters = "(Mr|Mrs|Ms|Dr|He\s|She\s|It\s|They\s|Their\s|Our\s|We\s|But\s|However\s|That\s|This\s|Wherever)" |
| 10 | acronyms = "([A-Z][.][A-Z][.](?:[A-Z][.])?)" |
aly / updatename.py
0 likes
0 forks
1 files
Last active
Randomises an emoji at the end of a twitter user name
| 1 | #!/usr/bin/env python |
| 2 | import tweepy |
| 3 | import json |
| 4 | import random |
| 5 | from emoji import unicode_codes |
| 6 | emoji = [e.encode('utf-8') for e in unicode_codes.EMOJI_UNICODE.values() if len(e.encode('utf-8')) == 4] |
| 7 | |
| 8 | with open(".twitter_config.json") as f: |
| 9 | config = json.load(f) |
aly / mp3_fn_to_tags.py
0 likes
0 forks
1 files
Last active
Because MP3Tag is a bit overkill for this task
| 1 | #!/usr/bin/env python3 |
| 2 | from mutagen.easyid3 import EasyID3 # pypi mutagen |
| 3 | from parse import parse # pypi parse |
| 4 | from argparse import ArgumentParser |
| 5 | from glob import glob |
| 6 | from sys import exit |
| 7 | |
| 8 | def write_tags(filename, newinfo): |
| 9 | audio = EasyID3(filename) |
| 10 | audio.update(newinfo) |
aly / gmusicupload.py
0 likes
0 forks
1 files
Last active
A script to upload music to Google Play Music
| 1 | #!/usr/bin/env python3 |
| 2 | from gmusicapi import Musicmanager # pip install gmusicapi |
| 3 | from glob import glob |
| 4 | from argparse import ArgumentParser |
| 5 | from sys import stderr |
| 6 | from urllib.parse import quote_plus |
| 7 | |
| 8 | m = Musicmanager() |
| 9 | if not m.login(): |
| 10 | m.perform_oauth() |