Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
$repoName = "PowerShell/PowerShell" | |
$assetPattern = "*-win-x64.msi" | |
$extractDirectory = "C:\Users\Public\Downloads" | |
$releasesUri = "https://api.github.com/repos/$repoName/releases/latest" | |
$asset = (Invoke-WebRequest $releasesUri | ConvertFrom-Json).assets | Where-Object name -like $assetPattern | |
$downloadUri = $asset.browser_download_url | |
$extractPath = [System.IO.Path]::Combine($extractDirectory, $asset.name) |
// uses System, Variants | |
function IsEmptyOrNull(const Value: Variant): Boolean; | |
begin | |
Result := VarIsClear(Value) or VarIsEmpty(Value) or VarIsNull(Value) or (VarCompareValue(Value, Unassigned) = vrEqual); | |
if (not Result) and VarIsStr(Value) then | |
Result := Value = ''; | |
end; |
If your vim distribution uses vim-plug
and includes plugins you don't want, or if you want to simply maintain a single set of plugins but disable some on certain machines, this may be for you.
let g:plugs_disabled = []
function! plug_disable#commit()
for name in g:plugs_disabled
;============================================================================= | |
; File: AutoHotkey.ahk | |
; Author: Mattia72 | |
; Description: Automatically launched AHK script | |
; Created: 28 okt. 2015 | |
; Project Repo: https://gist.github.com/f422d965d2dcd6db3bbf.git | |
;============================================================================= | |
; This script has a special filename and path because it is automatically | |
; launched when you run the program directly. Also, any text file whose |