Skip to content

Instantly share code, notes, and snippets.

@vadym-vorobel
vadym-vorobel / Task.md
Last active October 20, 2020 10:58
Interview task (React)

Interview task (React)

Popular Movies

Overview

The main aim is to create a simple UI using React and The Movies DB API.

ToDo

@vadym-vorobel
vadym-vorobel / setup.md
Last active April 19, 2021 08:06
Manjaro setup

Manjaro setup

Common programs

At first - install bauh- GUI for applications manager.

sudo pacman -Sy bauh

Keybase proof

I hereby claim:

  • I am vadym-vorobel on github.
  • I am vadymvorobel (https://keybase.io/vadymvorobel) on keybase.
  • I have a public key ASC3uQByVqPuDn3jBIgW00-iYVmpVR1e9Ib5hTX5b7H5lQo

To claim this, I am signing this object:

@vadym-vorobel
vadym-vorobel / Results.md
Last active July 1, 2019 15:35
ReactiveSearch promoted results issue
var structureTypes = {
type: 'type',
typeCount: 'typeCount',
};
// ============ PARAMETERS =============
var collectionName = '';
var limit = 0; // 0 - analyze all documents
var structureType = structureTypes.type;
// =====================================
@vadym-vorobel
vadym-vorobel / blaze-example.js
Last active September 3, 2018 12:53
Manager that helps to work with Meteor subscriptions
import { Template } from 'meteor/templating';
import initSubsManager from './subs-manager';
const subsManager = initSubsManager();
// you can show subs manager logs with debug mode
// subsManager.debug();
Template.example.onCreated(function () {
@vadym-vorobel
vadym-vorobel / data.txt
Last active April 23, 2018 07:57
Working with async functions and modules
Some important data
@vadym-vorobel
vadym-vorobel / ID.js
Created October 5, 2017 09:03
ID - a unique ID/name generator for JavaScript
// Generate unique IDs for use as pseudo-private/protected names.
// Similar in concept to
// <http://wiki.ecmascript.org/doku.php?id=strawman:names>.
//
// The goals of this function are twofold:
//
// * Provide a way to generate a string guaranteed to be unique when compared
// to other strings generated by this function.
// * Make the string complex enough that it is highly unlikely to be
// accidentally duplicated by hand (this is key if you're using `ID`
@vadym-vorobel
vadym-vorobel / padding-margin-generator.less
Last active July 26, 2018 07:02
Code for auto paddings and margings generation with LESS and Stylus. Generates classes like .m-t-5, .p-b-100 for margins and paddings (maximum value - 100, step is 5)
.generate-paddings-options(20);
.generate-paddings-options(@n, @i: 0) when (@i =< @n) {
@step: @i*5;
.p-t-@{step} {
padding-top: (@step*1px) !important;
}
.p-r-@{step} {
padding-right: (@step*1px) !important;
}