Skip to content

Instantly share code, notes, and snippets.

@FichteFoll
FichteFoll / ABRS.au3
Last active October 3, 2015 01:58
Anime-Bilder-Rate-Spiel-Bestenliste
; This script is used to auto-generate the ranglist of correctly guessed anime.
; Usage: https://akatsuki-subs.net/forum/thread-1151.html
; Gist: https://gist.github.com/2367207
;
; (c) FichteFoll, 2012-04-12
#include <Array.au3>
#include <String.au3>
#include "LibCsv2_mod.au3"
;~ #include <_CSVLib_V1.3.au3>
@FichteFoll
FichteFoll / FichteMarkDown.JSON-tmLanguage
Created April 28, 2012 22:40
Syntax definition file for Sublime Text (in JSON format) of my "own" markdown language
{
"name": "FichteMarkDown",
"scopeName": "text.fmd",
"fileTypes": ["fmd"],
"patterns": [
{
"include": "#inline"
},
{
"include": "#list-heading"
@FichteFoll
FichteFoll / open_recently_closed_file.py
Created May 10, 2012 15:27 — forked from jbjornson/open_recently_closed_file.py
Plugin that keeps track of which files have been recently closed, as well as files that have been recently accessed. The plugin can be used to simply open the last file you closed or can be used to display a quick panel with a list of recently accessed f
'''
@author Josh Bjornson
This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/
or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
'''
import sublime
import sublime_plugin
import os
@FichteFoll
FichteFoll / prettify_markdown_table.py
Created May 12, 2012 02:09
Plugin for Sublime Text 2 that "prettifies" MultiMarkdown tables and aligns their vertical separators
from sublime import Region
import sublime_plugin
"""
This plugin for Sublime Text 2 searches for tables with a style like:
| I'm a header | I'm second|lolol|
|:-|-:|::|
| I'm a cell | yeah, you bet ||
@FichteFoll
FichteFoll / rename.py
Created June 3, 2012 17:27
A small script I use for batch-renaming files and/or folders with Regular Expressions
# A list of dicts will be run over every file or directory in the "current" directory.
# TODO:
# - 'directory' option: Use specified dir as "parent"
# - 'subdirs' option: Scan through subdirs (don't play with self-refering Junctions, if that's even possible)
import os
import re
@FichteFoll
FichteFoll / tree_style_tabbar_adjust.css
Last active October 6, 2015 03:48
FireFox/Stylish: Adjustments for the Add-on "Tree Style Tabbar" and its "sidebar" skin
/*
Adjustments for the Add-on "Tree Style Tabbar" and its "sidebar" skin
Made for (and with) FireFox 15b thru 31b (Australis)
@author FichteFoll
*/
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
@FichteFoll
FichteFoll / Context.sublime-menu
Created August 15, 2012 12:37
Sublime Text 2 plugin; copys multiple selections linewise to the clipboard an prepends the line numbers
[
{ "caption": "Copy with line numbers", "command": "copy_with_line_numbers" }
]
@FichteFoll
FichteFoll / FX_utils.lua
Created December 24, 2012 12:54
Oreimo ED13 [True Route] Karaoke-FX in Lua
--[[
A template script used for Automation 4 karaoke FXes with Aegisub
You will want to call `register()` at the end of your script or whenever at least `script_name` is defined.
Functions to be defined:
* init(subs, meta, styles) [optional]
Called after all possibly existing previous fx lines have been deleted and the karaoke lines restored.
Do whatever you like in here. Won't be called if `init` is nil.
@FichteFoll
FichteFoll / extract_all_fonts.py
Last active February 12, 2024 03:34
This script extracts all font attachments of a Matroska file; easy to modify
#!/usr/bin/env python3
# This script extracts all font attachments of a Matroska file
# Requirements: mkvtoolnix executables
import subprocess
import re
import os.path
from collections import namedtuple
@FichteFoll
FichteFoll / exec.py
Created January 21, 2013 21:02
Sublime Text plugin modification of "exec.py" that works around encoding problems with default builds. Changes start in line 180.
import sublime, sublime_plugin
import os, sys
import thread
import subprocess
import functools
import time
class ProcessListener(object):
def on_data(self, proc, data):
pass