Skip to content

Instantly share code, notes, and snippets.

@FichteFoll
FichteFoll / other.diff
Created February 1, 2013 22:34
Code review over `sublime.py`; first applied `pep8.diff`, then `other.diff`
--- sublime_pep8.py Fri Feb 1 23:31:44 2013
+++ sublime.py Fri Feb 1 23:25:56 2013
@@ -15,21 +15,26 @@
ENCODED_POSITION = 1
TRANSIENT = 4
FORCE_GROUP = 8
+
IGNORECASE = 2
LITERAL = 1
+
@FichteFoll
FichteFoll / sublime.py
Last active December 12, 2015 01:58
Code review over `sublime.py`
import sublime_api
import sys
class _LogWriter:
def flush(self):
pass
def write(self, s):
sublime_api.log_message(s)
@FichteFoll
FichteFoll / edytor.py
Last active December 16, 2015 18:29
Simple text editor with PyQt
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'E:\Development\Python\PyQt tests\text editor\edytor.ui'
#
# Created: Mon Apr 29 16:12:17 2013
# by: PyQt4 UI code generator 4.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
@FichteFoll
FichteFoll / stripe_highlight.py
Created May 2, 2013 16:54
Stripe highlighting plugin for Sublime Text
"""
This simple and "dirty" plugin highlights specified columns visually by
splitting the buffer into columns which can be colored according to `sections`.
To enable this "stripe highlighting" create a keymapping for the
"toggle_stripe_highlight" command.
http://www.sublimetext.com/forum/viewtopic.php?f=2&t=12111
"""
@FichteFoll
FichteFoll / Twilight-Fichte.YAML-tmTheme
Created May 5, 2013 23:00
My color scheme for Sublime Text, a modified version of Twilight
# [PackageDev] target_format: plist, ext: tmTheme
author: Michael Sheets, modified by FichteFoll
name: Twilight-Fichte
uuid: 766026CB-703D-4610-B070-8DE07D967C5F
settings:
- settings:
background: '#141414'
caret: '#A7A7A7'
foreground: '#F8F8F8'
@FichteFoll
FichteFoll / dlg.lua
Created May 8, 2013 00:25
_G.dlg - Provides functions with basic layouts for aegisub.dialog.display (not sure if working ...)
--[[
- Namespace: _G.dlg
- Description: Provides functions with basic layouts for aegisub.dialog.display
- Constants:
MSG_OK = 0
MSG_OKCANCEL = 1
MSG_YESNO = 2
MSG_YESNOALL = 3
@FichteFoll
FichteFoll / ExpressionEngine.YAML-tmLanguage
Created May 23, 2013 14:20
ExpressionEngine Syntax (adjustments)
# [PackageDev] target_format: plist, ext: tmLanguage
comment: ExpressionEngine grammar for Sublime Text. Forked, overhauled and expanded
by fcgrx from imjared's module, which was forked from wes baker's fork of tim kelty's
original work.
name: ExpressionEngine
scopeName: text.html.ee
fileTypes: [html, htm, php, xhtml]
uuid: B47DFD28-B25E-4CC7-BFD4-1AEA1B84DA2F
patterns:
- include: '#embedded-code'
# [PackageDev] target_format: plist, ext: tmLanguage
name: AutoIt Script
scopeName: source.autoit
fileTypes: [au3]
uuid: E4862A3B-FBD6-342C-AB07-4EE2567CF68B
patterns:
- name: keyword.control.autoit
match: \b(?i:byref|case|const|continuecase|continueloop|default|dim|do|else|elseif|endfunc|endif|endselect|endswitch|endwith|enum|exit|exitloop|false|for|func|global|if|in|local|next|redim|return|select|step|switch|then|to|true|until|wend|while|with)\b
@FichteFoll
FichteFoll / FireFox_menuicon.css
Created October 14, 2013 21:41
My FireFox Userstyles
/* Firefox 4 Menu Button with icon+(Tabs in Titlebar)_mod-FichteFoll
ver.0.4.4
*/
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/* Modifies Firefox button into an icon'n'dropmarker only form. */
/*
Explanation for the background. background-image consists of five images.
1. url("data:ima... for the icon
@FichteFoll
FichteFoll / batch.py
Last active December 28, 2015 10:19
Command for running macro-like commands; can also run window commands (indicated by preceding "_") and repeat commands. Uses sublime_lib's WindowAndTextCommand (https://github.com/SublimeText/AAAPackageDev/blob/master/Lib/sublime_lib/__init__.py)
import sublime_lib
# See https://github.com/SublimeText/AAAPackageDev/blob/master/Lib/sublime_lib/__init__.py
# Example usage:
# // ; before ) or } or "
# { "keys": [";"], "command": "batch", "args": {
# "commands": [
# ["move", {"by": "characters", "forward": true}],
# ["insert", {"characters": ";"}]