Skip to content

Instantly share code, notes, and snippets.

View naspeh's full-sized avatar

Hrisha Kostiuk naspeh

View GitHub Profile
@naspeh
naspeh / TrueColour.md
Created March 14, 2018 12:23 — forked from XVilka/TrueColour.md
True Colour (16 million colours) support in various terminal applications and terminals

Colours in terminal

It's a common confusion about terminal colours... Actually we have this:

  • plain ascii
  • ansi escape codes (16 colour codes with bold/italic and background)
  • 256 colour palette (216 colours + 16 ansi + 24 gray) (colors are 24bit)
  • 24bit true colour ("888" colours (aka 16 milion))
printf "\x1b[${bg};2;${red};${green};${blue}m\n"
+ cd /opt/superdesk/client-core
+ npm i protractor-flake
[email protected] /opt/superdesk/client-core
└─┬ [email protected]
├── [email protected]
└── [email protected]
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ webdriver-manager update
@naspeh
naspeh / .eslintrc.js
Last active September 14, 2015 09:33 — forked from dmnsgn/.eslintrc.js
.eslintrc Google JavaScript Style Guide (eslint v0.24.1)
{
// http://eslint.org/docs/rules/
"env": {
"browser": true, // browser global variables.
"node": false, // Node.js global variables and Node.js-specific rules.
"worker": false, // web workers global variables.
"amd": false, // defines require() and define() as global variables as per the amd spec.
"mocha": false, // adds all of the Mocha testing global variables.
"jasmine": false, // adds all of the Jasmine testing global variables for version 1.3 and 2.0.
@naspeh
naspeh / translit.py
Created December 27, 2010 08:33
translit for ru/ua langs;
# -*- coding: utf-8 -*-
import re
RU = (
u'ёыъэ',
u'а,a;б,b;в,v;г,g;д,d;е,e;ё,yo;ж,zh;з,z;и,i;'
u'й,y;к,k;л,l;м,m;н,n;о,o;п,p;р,r;с,s;т,t;'
u'у,u;ф,f;х,h;ц,c;ч,ch;ш,sh;щ,shh;ъ,\";ы,y;ь,\';'
u'э,e;ю,yu;я,ya'