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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
import codecs | |
encoded_text = open(sys.argv[-1], 'rb').read() | |
bom= codecs.BOM_UTF16_LE | |
assert encoded_text.startswith(bom) | |
encoded_text= encoded_text[len(bom):] |
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
# Single-line version: | |
(?i)\b((?:https?:(?:/{1,3}|[a-z0-9%])|[a-z0-9.\-]+[.](?:[a-z]{2,13})(?:[^\s()<>{}\[\]]+|\([^\s()]*?\([^\s()]+\)[^\s()]*?\)|\([^\s]+?\))+(?:\([^\s()]*?\([^\s()]+\)[^\s()]*?\)|\([^\s]+?\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’])|(?:(?<!@)[a-z0-9]+(?:[.\-][a-z0-9]+)*[.](?:[a-z]{2,13})\b/?(?!@))) | |
# Commented multi-line version: | |
(?xi) | |
\b | |
( # Capture 1: entire matched URL | |
(?: |
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
/* CUSTOMIZATIONS | |
------------------------------------------------------------------------------------------------- | |
$path: the path of the folder containing the es.exe executable, with a final | |
slash. | |
$paper: the base name of the paper folder containing the search results, without | |
extension; | |
$mode: controls how the minus sign, which introduces switches in es.exe, is | |
treated/escaped. Three modes are available. |
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
#cVim-link-container, .cVim-link-hint, #cVim-command-bar, #cVim-command-bar-mode, #cVim-command-bar-input, #cVim-command-bar-search-results, .cVim-completion-item, .cVim-completion-item .cVim-full, .cVim-completion-item .cVim-left, .cVim-completion-item .cVim-right, #cVim-hud, #cVim-status-bar { | |
font-family: Helvetica, Helvetica Neue, Neue, sans-serif, Arial; | |
font-size: 9pt !important; | |
-webkit-font-smoothing: antialiased !important; | |
border-radius: 4px!important; | |
} | |
#cVim-link-container { | |
position: absolute; | |
pointer-events: none; |
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
--- | |
plugins: | |
remark-lint: | |
blockquote-indentation: 2 | |
final-newline: true | |
hard-break-spaces: true | |
list-item-bullet-indent: true | |
list-item-indent: 'tab-size' | |
maximum-line-length: false | |
no-auto-link-without-protocol: true |
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
; WINDOWS KEY + Y TOGGLES FILE EXTENSIONS | |
#y:: | |
RegRead, HiddenFiles_Status, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, HideFileExt | |
If HiddenFiles_Status = 1 | |
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, HideFileExt, 0 | |
Else | |
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, HideFileExt, 1 | |
WinGetClass, eh_Class,A | |
If (eh_Class = "#32770" OR A_OSVersion = "WIN_VISTA") | |
send, {F5} |
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
<# | |
.Synopsis | |
Displays a visual representation of a calendar. | |
.Description | |
Displays a visual representation of a calendar. This function supports multiple months | |
and lets you highlight specific date ranges or days. | |
.Parameter Start | |
The first month to display. |
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
From 8c376bdb5e6d22ab56044bd07f4f631eaa40855d Mon Sep 17 00:00:00 2001 | |
From: Zhao Cai <[email protected]> | |
Date: Sun, 27 Oct 2013 22:05:23 -0400 | |
Subject: [PATCH] Disable "Pattern not found" message unless verbose > 0 | |
--- | |
src/edit.c | 3 ++- | |
1 file changed, 2 insertions(+), 1 deletion(-) | |
diff --git a/src/edit.c b/src/edit.c |
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
From 9dfbbe18f2e84da649f28dc1a3b06935ac0e3b17 Mon Sep 17 00:00:00 2001 | |
From: Zhao Cai <[email protected]> | |
Date: Wed, 31 Jul 2013 16:43:01 -0400 | |
Subject: [PATCH] Add QueryPartialMatch to ycm_core | |
--- | |
cpp/ycm/PythonSupport.cpp | 43 +++++++++++++++++++++++++++++++++++++++++++ | |
cpp/ycm/PythonSupport.h | 11 +++++++++++ | |
cpp/ycm/ycm_core.cpp | 1 + | |
3 files changed, 55 insertions(+) |
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
python -m cProfile -s time mine.py <args> |
NewerOlder