- POSIX, LSB: [http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/command.html](Linux Standard Base)
- GNU: [https://www.gnu.org/software/coreutils/manual/html_node/](GNU Coreutils)
- util-linux: https://en.wikipedia.org/wiki/Util-linux, https://github.com/pkrumins/util-linux-cheat-sheet/blob/master/all-commands.txt
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
[document, ...Array.from(document.querySelectorAll('iframe'), frame => frame.contentDocument)] | |
.flatMap(doc => Array.from(doc.styleSheets)) | |
.flatMap(sheet => Array.from(sheet.cssRules)) | |
.flatMap(rule => { | |
if (!rule) return []; | |
if (rule.type === 1) return rule; | |
if (rule.type === 4 || rule.type === 12) return Array.from(rule.cssRules); | |
return []; | |
}).length; |
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 sublime, sublime_plugin | |
def get_tab_size(view): | |
return int(view.settings().get('tab_size', 8)) | |
def normed_indentation_pt(view, sel, non_space=False): | |
tab_size = get_tab_size(view) | |
pos = 0 | |
ln = view.line(sel) | |
for pt in range(ln.begin(), ln.end() if non_space else sel.begin()): |
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
if($('input.datepicker').length>0) { | |
$('.datepicker').datepicker({ | |
dateFormat: 'dd.mm.yy', | |
monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], | |
dayNames: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag','Samstag'], | |
dayNamesMin: ['So', 'Mo', 'Die', 'Mi', 'Do', 'Fre', 'Sa'] | |
}); | |
} |