This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
def list_files(path): | |
abs_path = os.path.abspath(path) | |
files = [] | |
for name in os.listdir(abs_path): | |
it_path = os.path.join(abs_path, name) | |
if os.path.isfile(it_path): | |
files.append(it_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*- encoding: utf8 -*- | |
# Call with "python parseXML.py test.xml" | |
# Tested with Python 3.5 | |
from tkinter import * | |
from tkinter.ttk import Treeview | |
import xml.etree.ElementTree as ET | |
class App: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name MedianDox | |
// @version 5.1.0 | |
// @description Median Documentation Enhancer | |
// @author D4koon | |
// @include http*://docs.median-xl.com/doc/* | |
// @grant GM_addStyle | |
// @grant GM.setValue | |
// @grant GM.getValue | |
// @namespace https://gist.github.com/D4koon/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*- encoding: utf8 -*- | |
# Call with "python parseXML.py test.xml" | |
from tkinter import * | |
from tkinter.ttk import Treeview | |
import xml.etree.ElementTree as ET | |
class App: | |
def __init__(self, root): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"workbench.colorCustomizations": { | |
//"editor.selectionBackground": "#2789f815", | |
"editor.selectionHighlightBackground": "#f8ea2757", | |
// Ka was das ist | |
//"editorOverviewRuler.bracketMatchForeground": "#27f84ada", | |
// Strg + f farbe | |
"editorOverviewRuler.findMatchForeground": "#ff7b00", | |
// Rahmen um selection | |
//"editor.selectionHighlightBorder": "#ff0000", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class IconExtensions | |
{ | |
/// <summary> | |
/// Create a Icon that calls DestroyIcon() when the Destructor is called. | |
/// Unfortunatly Icon.FromHandle() initializes with the internal Icon-constructor Icon(handle, false), which sets the internal value "ownHandle" to false | |
/// This way because of the false, DestroyIcon() is not called as can be seen here: | |
/// https://referencesource.microsoft.com/#System.Drawing/commonui/System/Drawing/Icon.cs,f2697049dea34e7c,references | |
/// To get arround this we get the constructor internal Icon(IntPtr handle, bool takeOwnership) from Icon through reflection and initialize that way | |
/// </summary> | |
private static Icon BitmapToIcon(Bitmap bitmap) |