Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
./Setup.bat | |
-exclude=WinRT | |
-exclude=Mac | |
-exclude=MacOS | |
-exclude=MacOSX | |
-exclude=osx | |
-exclude=osx64 | |
-exclude=osx32 | |
-exclude=Android | |
-exclude=IOS |
import { Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core'; | |
@Directive({ selector: '[myDir]'}) | |
export class MyDirective { | |
@Input() set myDir(text: string) { | |
console.log("text:", text); | |
} | |
@Input() set myDirGreet(greet: string) { |
(defun search-unique (marker) | |
"Search for the first and only occurrence of MARKER. | |
Return the position if found, or nil if not found or multiple occurrences exist." | |
(let ((first-pos nil) | |
(count 0)) | |
(save-excursion | |
(goto-char (point-min)) | |
(while (search-forward marker nil t) | |
(setq count (1+ count)) | |
(when (= count 1) |
' Disables Vanguard from starting when you boot your computer | |
Call CreateObject("Shell.Application").ShellExecute("cmd.exe", "/c ""sc config vgc start= disabled & sc config vgk start= disabled""", "", "runas") |
Let us start from a practical example. Imagine we are writing a traffic monitoring application. The purpose of application would be to calculate a number of bytes sent by each IP address. To do that, let create a structure that does that accounting:
struct ipstat {
uint32_t ip; /* Source IP address */
<style> | |
/* https://github.com/lonekorean/gist-syntax-themes */ | |
@import url('https://cdn.rawgit.com/lonekorean/gist-syntax-themes/d49b91b3/stylesheets/idle-fingers.css'); | |
@import url('https://fonts.googleapis.com/css?family=Open+Sans'); | |
body { | |
font: 16px 'Open Sans', sans-serif; | |
} | |
body .gist .gist-file { | |
border-color: #555 #555 #444 |