Skip to content

Instantly share code, notes, and snippets.

View FichteFoll's full-sized avatar

FichteFoll

  • Germany
  • 06:44 (UTC +02:00)
View GitHub Profile
@FichteFoll
FichteFoll / tabs_in_titlebar_australis.css
Last active August 29, 2015 13:57
FireFox: Tabs in the title bar on Australis UI
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#main-window[chromemargin][sizemode="normal"]:not([inFullscreen])
#navigator-toolbox {
overflow: visible;
}
#main-window[chromemargin][sizemode="normal"]:not([inFullscreen])
#nav-bar {
@FichteFoll
FichteFoll / output
Last active August 29, 2015 13:58
CSScheme Stylus Test File
@purpose "This is just an example file to show how you can use this tool"
// This at-rule is required
@name "Example SCSScheme"
// FLAGS
$punctuation = true
// The color palette (from http://serennu.com/colour/colourcalculator.php)
// Don't try these at home!
@FichteFoll
FichteFoll / ensure_newline_at_oef.py
Created June 26, 2014 17:02
Sublime Plugin: Always ensures a newline at eof
import sublime_plugin
# Override default command here that is restricted onto real views
# (and also does not modify selection)
class EnsureNewlineAtEofCommand(sublime_plugin.TextCommand):
def insert_nosel(self, view, edit, p, text):
"""Insert text without changing selection. Use with care.
"""
@FichteFoll
FichteFoll / FX_utils.lua
Created August 22, 2014 17:17
FX_utils.lua for Aegisub Automation karaokes
--[[
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 / _mana.py
Created November 21, 2014 20:00
Script for calculating mana (and mana regen stats per level) in League of Legends
#!/usr/bin/env python3
import math
import json
# In this entire file, all levels will be referred to from 1 to 18 (and not 0!)
def median(lst):
sortedLst = sorted(lst)
@FichteFoll
FichteFoll / defer_action.py
Created February 24, 2015 00:44
TimeoutThread that defers actions until it was not poked again for a certain duration (timeout)
import sublime_plugin
import time
import threading
from functools import partial
from collections import namedtuple
class TimeoutThread(threading.Thread):
@FichteFoll
FichteFoll / bootstrap_logging.py
Last active August 29, 2015 14:16
Bootstraps the sublime.log_* functions to automatically toggle when called with no parameter (or `None`)
import sublime
from functools import partial
function_names = ('input', 'commands', 'result_regex', 'indexing')
# Cleanup
if hasattr(sublime, 'logging_unbootstrap'):
sublime.logging_unbootstrap()
# Assure this exists
@FichteFoll
FichteFoll / description.html
Last active August 29, 2015 14:20
fichtefoll.soup.io resources
<ul id="linkbox" class="size32">
<li><a class="rss" href="http://fichtefoll.soup.io/rss"></a></li>
<li><a class="lastfm" href="http://last.fm/user/fichtefoll"></a></li>
<li><a class="twitter" href="http://twitter.com/fichtefoll"></a></li>
<!-- <li><a class="wordpress" href="http://fichtefoll.akatsuki-subs.net"></a></li> -->
<li><a class="youtube" href="http://youtube.com/yisery"></a></li>
</ul>
<p>
Just a random collection of awesomeness or what I appreciate as awesome ;)
<br />
@FichteFoll
FichteFoll / FX_utils.lua
Created October 1, 2015 23:42
Karaoke effect using Automation 4 for Ore no Imouto TR 15 (Ending)
--[[
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 / 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>