Skip to content

Instantly share code, notes, and snippets.

View sensonicm's full-sized avatar
🟢
ready to deal

Max V.A. sensonicm

🟢
ready to deal
  • Moscow, Russia
View GitHub Profile
@sensonicm
sensonicm / plural-rus
Created August 13, 2019 12:08
Russian plural function
function plural_str(i, str1, str2, str3){
function plural (a){
if ( a % 10 == 1 && a % 100 != 11 ) return 0
else if ( a % 10 >= 2 && a % 10 <= 4 && ( a % 100 < 10 || a % 100 >= 20)) return 1
else return 2;
}
switch (plural(i)) {
case 0: return str1;
case 1: return str2;
default: return str3;

Символы, которые имеет смысл брать в шрифт:

! "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~©«»ЁАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюяё‐‑‒–—―‘‚“„…‰™°₽€”’′″×

@sensonicm
sensonicm / nginx-host
Last active February 15, 2018 08:16
nginx http2 + ssl config for Drupal
server {
listen 80 ;
#listen [::]:80 ;
server_name domain.ru www.domain.ru;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
server_name www.domain.ru;
@sensonicm
sensonicm / gist:2dd671ec05d8e9283d13abb495e6ffae
Created January 17, 2018 17:20 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@sensonicm
sensonicm / README.md
Created November 19, 2017 23:41 — forked from jonathantneal/README.md
SASS @font-face mixin

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);
@sensonicm
sensonicm / minttyrc - theme
Last active December 1, 2017 09:43
theme for console - ".minttyrc"
BoldAsFont=-1
Transparency=low
ForegroundColour=248,248,248
BackgroundColour=16,16,18
Black=0,0,0
BoldBlack=40,42,53
Red=255,85,85
BoldRed=255,110,103
Green=80,250,123
BoldGreen=90,247,142