Skip to content

Instantly share code, notes, and snippets.

View yenobi's full-sized avatar
💭
Coming back

Serhii Koshman yenobi

💭
Coming back
  • Levi9 Ukraine
  • Kyiv, Ukraine
View GitHub Profile
let mightBeSomething: void = null;
// Error: Type 'null' is not assignable to type 'never'
let definetlyNothing: never = null;
// or like this you will have error, too.
const someFunction: () => string = () => 'string, not nothing';
// Error: Type 'string' is not assignable to type 'never'
let neverValue: never = someFunction();
// ----------
// All you need to know about interceptors that this is class that will
// throughput all of the request coming from the application.
// It must have method intercept, that will be triggered with request object.
// And in this case i am integrating with the backend, that i am not fully in cotrol of.
// I do not know, what will be the type of response,
// but i assume that there will be one for sure.
class iWillCatchAllOfTheRequestsFromApplication implements Interceptor {
intercept (

Keybase proof

I hereby claim:

  • I am yenobi on github.
  • I am yenobi (https://keybase.io/yenobi) on keybase.
  • I have a public key ASAqsN1S5S6h6wt2vZ6qg1a8BIeIoMVrnFyVfTVyA25TLwo

To claim this, I am signing this object:

@yenobi
yenobi / meta-tags.md
Created July 19, 2018 13:07 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@yenobi
yenobi / test-task.md
Created May 17, 2018 22:14 — forked from krambertech/test-task.md
Intern / Junior Front-End Developer Position @ Youscan : Test Task

Test Task for Intern / Junior Front-End Developer Position @ Youscan

Основная задача тестового не узнать как сильно вы знаете React, а посмотреть насколько хорошо вы сможете разобраться с новыми технологиями в относительно короткий срок. В идеале, на него нужно потратить не более 3 дней. А так - делайте сколько делается, пока мы не закроем вакансию ;)

Описание

Нужно написать одностраничное приложения для просмотра фильмов с помощью The Movie Database API.

При открытии приложения, должен отображаться список популярных фильмов с пагинацией или динамической подгрузкой (на выбор). Также на странице должно быть поле для поиска. Когда ты вводишь туда какой-то текст, должны отобразиться фильмы которые ему соответствуют. Для каждого фильма в списке должен отображаться список жанров (названий жанров, не айдишек), к которым он принадлежит.

@yenobi
yenobi / deploy.md
Last active January 30, 2018 15:01

sudo apt-get update
sudo apt install git

sudo nano /etc/default/locale
Paste to file:

LANGUAGE=en_US.UTF-8
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
LC_TYPE=en_US.UTF-8
@yenobi
yenobi / IndexedDB101.js
Created November 11, 2017 17:45 — forked from JamesMessinger/IndexedDB101.js
Very Simple IndexedDB Example
// This works on all devices/browsers, and uses IndexedDBShim as a final fallback
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB;
// Open (or create) the database
var open = indexedDB.open("MyDatabase", 1);
// Create the schema
open.onupgradeneeded = function() {
var db = open.result;
var store = db.createObjectStore("MyObjectStore", {keyPath: "id"});
import {Subject} from 'rxjs/Subject';
import {Observable} from 'rxjs/Observable';
import 'rxjs/add/operator/filter';
import 'rxjs/add/operator/map';
interface BroadcastEvent {
key: any;
data?: any;
}
@yenobi
yenobi / kottans-2017.md
Created September 6, 2017 19:23
Kottans Front End 2017 — test assignment

Kottans Front End 2017 — test assignment

Hello and welcome to the next step of our selection process. The goal is to determine if we are a good match.

Flow

mini GitHub API client

First screen: owner (organization or user) name input and submit button.