Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.
Terminal
, go to the dir : cd /Applications/Beyond Compare.app/Contents/MacOS
BCompare
to BCompare.bak
: mv BCompare BCompare.bak
BCompare
, and chmod a+ux BCompare
: touch BCompare && chmod a+ux BCompare
BCompare
with text editor, insert the script :#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts, | |
that detects and handles AJAXed content. | |
Usage example: | |
waitForKeyElements ( | |
"div.comments" | |
, commentCallbackFunction | |
); |
reg delete "HKCU\Software\Scooter Software\Beyond Compare 4" /v CacheID /f |
#include <curl/curl.h> | |
#include <string> | |
size_t writeFunction(void *ptr, size_t size, size_t nmemb, std::string* data) { | |
data->append((char*) ptr, size * nmemb); | |
return size * nmemb; | |
} | |
int main(int argc, char** argv) { | |
auto curl = curl_easy_init(); |
Using Python to check if remote port is open and accessible.
Taken from http://snipplr.com/view/19639/test-if-an-ipport-is-open/
Usage:
#!/usr/bin/env/python | |
# | |
# More of a reference of using jinaj2 without actual template files. | |
# This is great for a simple output transformation to standard out. | |
# | |
# Of course you will need to "sudo pip install jinja2" first! | |
# | |
# I like to refer to the following to remember how to use jinja2 :) | |
# http://jinja.pocoo.org/docs/templates/ | |
# |
// ==UserScript== | |
// @name SO Layout Whack-A-Mole | |
// @description Fix new "responsive" and unusable design of StackOverflow user profiles | |
// @version 0.8.1 | |
// @author Marco Bonelli | |
// @namespace https://mebeim.net | |
// @match https://stackoverflow.com/users/*/* | |
// @downloadURL https://gist.githubusercontent.com/mebeim/b50951a0f4bbcaac0c1aa73e6a7cdc66/raw/so-layout-whack-a-mole.user.js | |
// @updateURL https://gist.githubusercontent.com/mebeim/b50951a0f4bbcaac0c1aa73e6a7cdc66/raw/so-layout-whack-a-mole.user.js | |
// @grant none |
\documentclass[tikz]{standalone} % last update March 2016 | |
\usepackage[utf8]{inputenc} | |
\usepackage[T1]{fontenc} | |
\title{Moderator chart} | |
\begin{document} | |
\definecolor{rows}{rgb}{0.95,0.95,0.95} | |
\definecolor{myblue}{rgb}{0.1,0.3,0.9} | |
\definecolor{mypurple}{rgb}{0.5,0.3,0.7} | |
\begin{tikzpicture}[scale=0.5] | |
% 1 horizontal unit = 1 month, 0 = january 2010 |
const handler = { | |
get: function (target, prop, receiver) { | |
if (typeof target[prop] !== 'function' ) { | |
return target[prop] | |
} | |
return function () { | |
return new Promise((resolve, reject) => { | |
Reflect.get(target, prop, receiver).apply(target, [...arguments, function (err, result) { | |
if (err) { | |
return reject(err) |