-
The AngularJS GIT commit guidelines: http://goo.gl/Ar4UHA
-
A detailed explanation can be found: http://goo.gl/iZth0R
-
Below is my slightly edited version; view in my Gist: https://goo.gl/MEjIkF
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
# Code to test the reliability of windll.kernel32.GetFileAttributesW() | |
# by running it on every file (that has read access) on the file system. | |
import os, os.path, sys | |
from ctypes import windll | |
HIDDEN_FILE_ATTRIBUTE = 2 | |
GET_ATTRIBUTES_FAILED = -1 |
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
# Proof of concept; retrieve the path of the syntax that a user has | |
# associated with any file extension in Sublime Text. | |
# | |
# 1) Create a temp file with the file extension of the desired syntax. | |
# 2) Open the temp file in ST with the API `open_file()` method; use a | |
# sublime.TRANSIENT buffer so that no tab is shown on the tab bar. | |
# 3) Retrieve the syntax ST has assigned to the view's settings. | |
# 4) Close the temp file's ST buffer. | |
# 5) Delete the temp file. | |
# |
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
# { "keys": ["ctrl+whatever"], "command": "example" }, | |
# { "keys": ["ctrl+whatever"], "command": "example_two" } | |
import sublime, sublime_plugin | |
# ********************* | |
# WindowCommand Version | |
# ********************* |
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
Show hidden characters
// > BOXY TOMORROW | |
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
// Definitely, your next theme for Sublime Text 3 | |
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
[ | |
// | |
// >> Autocomplete | |
// =========================================================================== | |
// Autocomplete settings and behavior |
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
// | |
// Modifications to theme: Boxy Tomorrow.sublime-theme | |
// Location: Packages/User/Boxy Tomorrow.sublime-theme | |
// | |
// The settings below override the theme and its settings | |
// and will be the last values loaded by Sublime Text. | |
// | |
// Note that font sizes can be fractions, e.g. 11.5. | |
// |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<!-- My modifications to the Boxy Tomorrow.tmTheme colour scheme. --> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Stan Made</string> | |
<key>colorSpaceName</key> |
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
// | |
// Modifications to theme: predawn-DEV.sublime-theme | |
// Location: Packages/User/predawn-DEV.sublime-theme | |
// See: Theme Customisation @ https://goo.gl/dTkjuX | |
// | |
// Note that font sizes can be fractions, e.g. 11.5 | |
// | |
[ |
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
def sort_view_items(self): | |
cs = self.settings.case_sensitive | |
if self.settings.sort_by_file_name: | |
sk = lambda vi: (vi.name if cs else vi.name.lower(), vi.group, vi.tab) | |
elif self.settings.sort_by_folder: | |
sk = lambda vi: (vi.folder, vi.name if cs else vi.name.lower()) |
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
def sort_view_items(self): | |
cs = self.settings.case_sensitive | |
if self.settings.sort_by_file_name: | |
self.view_items.sort(key = lambda vi: (vi.name if cs else vi.name.lower(), vi.group, vi.tab)) | |
elif self.settings.sort_by_folder: | |
self.view_items.sort(key = lambda vi: (vi.folder, vi.name if cs else vi.name.lower())) |