Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
// ==UserScript== | |
// @name piratepowered.ga download improved | |
// @namespace sak32009-piratepowered-download-improved | |
// @description piratepowered.ga download improved | |
// @author Sak32009 | |
// @version 1.0.2 | |
// @homepageURL https://gist.github.com/Sak32009/661ccebe953c392b0a6eeee01cc0c62c/ | |
// @updateURL https://gist.github.com/Sak32009/661ccebe953c392b0a6eeee01cc0c62c/raw/sak32009-piratepowered-download-improved.user.js | |
// @downloadURL https://gist.github.com/Sak32009/661ccebe953c392b0a6eeee01cc0c62c/raw/sak32009-piratepowered-download-improved.user.js | |
// @match *://piratepowered.ga/* |
#!/bin/bash | |
hash pandoc 2>/dev/null || { echo >&2 "Please install pandoc. Aborting."; exit 1; } | |
hash pdftk 2>/dev/null || { echo >&2 "Please install pdftk. Aborting."; exit 1; } | |
hash ebook-convert 2>/dev/null || { echo >&2 "Please install ebook-convert. Aborting."; exit 1; } | |
SOURCE=Usable-Software-Design.md | |
PRINT_DESTINATION=Usable-Software-Design-print.pdf | |
PDF_DESTINATION=Usable-Software-Design.pdf | |
PREVIEW_DESTINATION=Usable-Software-Design-Preview.pdf |
# From https://technet.microsoft.com/en-us/library/ff730944.aspx | |
# This will open an internet explorer window that will display all installed windows font names in their corresponding font. | |
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing") | |
$objFonts = New-Object System.Drawing.Text.InstalledFontCollection | |
$colFonts = $objFonts.Families | |
$objIE = New-Object -com "InternetExplorer.Application" | |
$objIE.Navigate("about:blank") | |
$objIE.ToolBar = 0 |
Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry sessionDebugger
Problem: When linking to the raw version of a gist, the link changes with each revision.
Solution:
To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/
To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]
/*--- checkForBadJavascripts() | |
This is a utility function, meant to be used inside a Greasemonkey script that | |
has the "@run-at document-start" directive set. | |
It Checks for and deletes or replaces specific <script> tags. | |
*/ | |
function checkForBadJavascripts (controlArray) { | |
/*--- Note that this is a self-initializing function. The controlArray | |
parameter is only active for the FIRST call. After that, it is an | |
event listener. |