start new:
tmux
start new with session name:
tmux new -s myname
// settings | |
// To solve this problem add the following line of code in the settings.json file in vscode | |
files.watcherExclude": { | |
"**/**/*": true | |
} | |
} |
export function guid(): string { | |
const date = new Date() | |
const timestamp = ((date.getTime() / 1000) | 0).toString(16) | |
const context = `${timestamp}xxxxxxxxxxxxxxxx` | |
const hash = context | |
.replace(/[x]/g, () => ((Math.random() * 16) | 0).toString(16)) | |
.toLowerCase() | |
return hash | |
} |
'use strict'; | |
module.exports = { | |
types: [ | |
{value: 'feat', name: 'feat: A new feature'}, | |
{value: 'fix', name: 'fix: A bug fix'}, | |
{value: 'docs', name: 'docs: Documentation only changes'}, | |
{value: 'style', name: 'style: Changes that do not affect the meaning of the code\n (white-space, formatting, missing semi-colons, etc)'}, | |
{value: 'refactor', name: 'refactor: A code change that neither fixes a bug nor adds a feature'}, |
export type Either<L, A> = Left<L, A> | Right<L, A> | |
export class Left<L, A> { | |
readonly value: L | |
constructor (value: L) { | |
this.value = value | |
} | |
isLeft (): this is Left<L, A> { |
Ctrl+b c Create a new window (with shell) | |
Ctrl+b w Choose window from a list | |
Ctrl+b 0 Switch to window 0 (by number ) | |
Ctrl+b , Rename the current window | |
Ctrl+b % Split current pane horizontally into two panes | |
Ctrl+b " Split current pane vertically into two panes | |
Ctrl+b o Go to the next pane | |
Ctrl+b ; Toggle between the current and previous pane | |
Ctrl+b x Close the current pane |
{ | |
"schemes" : | |
[ | |
{ | |
"background" : "#fafafa", | |
"black" : "#000000", | |
"blue" : "#3199e1", | |
"brightBlack" : "#686868", | |
"brightBlue" : "#399ee6", | |
"brightCyan" : "#4cbf99", |
# Init a new instance tmux
$ tmux
# Override xterm-256color:Tc for active true colors of TMUX
$ tmux set-option -ga terminal-overrides ",xterm-256color:Tc"
# Disconnect of session (without exit)
$ tmux detach
<?php | |
/** | |
* class Merge | |
*/ | |
class Merge { | |
/** | |
* sort | |
* @param array &$a (Pointer) | |
* @param int $lb |