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
; WindowsKey-V shortcut to paste text with no formatting | |
; (like Paste Special > Plain Text, but faster and works everywhere) | |
; for AutoHotKey | |
#v:: | |
ClipSaved := ClipboardAll | |
tempClipboard = %clipboard% | |
Clipboard = %tempClipboard% | |
SendPlay ^v | |
Clipboard := ClipSaved | |
; add an arbitrary delay to increase reliability for certain apps |
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
<!DOCTYPE html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Test</title> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/qunit/1.11.0/qunit.js"></script> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/qunit/1.11.0/qunit.css"> | |
<script src="yourJavascriptFile.js"></script> | |
<script src="yourTestScriptFile.js"></script> | |
</head> |
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 re | |
def replace_one_hex_with_chr(m): | |
return str(unichr(int(m.group()[1:], 16))) | |
def replace_hex_with_chr(s): | |
return re.sub(r'%[0-9A-Fa-f][0-9A-Fa-f]', replace_one_hex_with_chr, s) | |
if __name__ == '__main__': | |
import sys, os |
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
""" | |
Convert an input source (file, string, or file descriptor) | |
into a generator that provides a line at a time. | |
Online challenges provide input on stdin, but for testing, | |
it can be useful to provide input via a file or a string. | |
This wrapper takes any of these formats and returns an | |
iterator that will provide the input a line at a time. | |
""" | |
def input_from_string(data): |
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
@echo off & python -x "%~f0" %* & goto :eof | |
# ========================================================== | |
# one way to place python script in a batch file | |
# place python code below (no need for .py file) | |
# ========================================================== | |
import sys | |
print "Hello World!" | |
for i,a in enumerate(sys.argv): |
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
""" | |
Console module provide `copen` method for opening interactive python shell in | |
the runtime. | |
http://sys-exit.blogspot.com/2013/12/python-open-interactive-console.html | |
Usage: | |
import console | |
console.copen(globals(), locals()) |
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
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar | |
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst | |
Disable-UAC | |
cinst bitdefenderavfree | |
cinst googlechrome | |
cinst sublimetext3 | |
cinst classic-shell | |
cinst sysinternals |
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
# use --global or --system options to specify other configuration locations | |
# -- global is per user, --system is for all users | |
git config status.showUntrackedFiles no | |
# https://chodounsky.net/2013/05/01/compare-files-with-git-diff-tool/ | |
git config color.status.added "cyan normal bold" | |
git config color.status.changed "cyan normal bold" | |
git config color.status.untracked "cyan normal bold" | |
git config color.diff.old "red normal bold" |
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
# with difftool, choose which files to diff | |
git difftool --dir-diff |
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
;; Added by Package.el. This must come before configurations of | |
;; installed packages. Don't delete this line. If you don't want it, | |
;; just comment it out by adding a semicolon to the start of the line. | |
;; You may delete these explanatory comments. | |
(package-initialize) | |
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. |
OlderNewer