This file contains hidden or 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
# I've installed LSP and LSP-pyright but I could not make it to format code and sort imports | |
# despite the fact that it works perfectly for golang | |
# out of pure frustration I created this little plugin: | |
from os.path import exists | |
from pathlib import Path | |
from subprocess import call | |
import sublime | |
import sublime_plugin |
This file contains hidden or 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 requests | |
from requests.auth import HTTPBasicAuth | |
import re | |
from StringIO import StringIO | |
JIRA_URL = 'https://your-jira-url.tld/' | |
JIRA_ACCOUNT = ('jira-username', 'jira-password') | |
# the JIRA project ID (short) | |
JIRA_PROJECT = 'PRO' | |
GITLAB_URL = 'http://your-gitlab-url.tld/' |
This file contains hidden or 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
from django.forms.models import model_to_dict as fmodel_to_dict | |
from django.db.models.related import RelatedObject | |
def remove_baseattr_name(prefix): | |
def inner(value): | |
return value[len(prefix)+1:] | |
return inner |
This file contains hidden or 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
from ConfigParser import SafeConfigParser, NoOptionError, NoSectionError | |
class ZendConfigParser(SafeConfigParser): | |
def read(self, filenames): | |
self._parents = {} | |
self._s = {} | |
SafeConfigParser.read(self, filenames) | |
for section in self.sections(): | |
if ':' in section: | |
s = section.split(':') |
This file contains hidden or 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
from django.contrib.staticfiles.finders import DefaultStorageFinder | |
from django.conf import settings | |
from django.core.files.storage import FileSystemStorage | |
class StaticRootFinder(DefaultStorageFinder): | |
def __init__(self, *args, **kwargs): | |
self.storage = FileSystemStorage(location=settings.STATIC_ROOT, base_url=settings.STATIC_URL) | |
super(StaticRootFinder, self).__init__(*args, **kwargs) |
This file contains hidden or 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
diff --git a/library/DoctrineExtensions/Paginate/CountWalker.php b/library/DoctrineExtensions/Paginate/CountWalker.php | |
index 6512435..44456d8 100644 | |
--- a/library/DoctrineExtensions/Paginate/CountWalker.php | |
+++ b/library/DoctrineExtensions/Paginate/CountWalker.php | |
@@ -31,9 +31,14 @@ class CountWalker extends TreeWalkerAdapter | |
{ | |
$parent = null; | |
$parentName = null; | |
- | |
+ $removeAllGroupBy = false; |
This file contains hidden or 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
diff --git a/src/DiffDirPane.cpp b/src/DiffDirPane.cpp | |
index 5060137..9b39681 100644 | |
--- a/src/DiffDirPane.cpp | |
+++ b/src/DiffDirPane.cpp | |
@@ -32,18 +32,18 @@ enum { | |
WX_DECLARE_STRING_HASH_MAP( wxTreeItemId, NameToTreeIdHash ); | |
BEGIN_EVENT_TABLE(DiffDirPane, wxPanel) | |
- EVT_TREE_ITEM_GETTOOLTIP(ID_DIFFTREE, OnTreeGetToolTip) | |
- EVT_TREE_ITEM_MENU(ID_DIFFTREE, OnTreeMenu) |