Skip to content

Instantly share code, notes, and snippets.

View Yvelious's full-sized avatar

Stas Levyshchev Yvelious

View GitHub Profile
@Yvelious
Yvelious / README.md
Created July 13, 2022 15:17 — forked from dankor/README.md
Як отримувати гроші з Upwork через свого ФОПа

Як отримувати гроші з Upwork через свого ФОПа

Це коротка інструкція про те, як бути білим фрілансером. Почав писати для себе, бо не все знайшов в інтернеті. І вирішив, що це корисно всім, хто працює на біржі Upwork і хоче розібратися як легально там заробляти. Тут є офіційна стаття, яку я вирішив доповнити конкретним своїм прикладом.

Що для цього потрібно?

  • Мати відкритого фопа з відповідними кведами
  • Мати відкритий фопівський гривневий і доларовий рахунки

ФОП

Про відкриття фопа і його облікування не буду розписувати. Якщо у вас фопа немає, то краще звернутися до консалтингових компаній, які на цьому спеціалізуються. Єдине, на чому я хотів би зупинитися, це кведи. Бажано, щоб вони збігалися з послугами, які ви надаватимете. Наприклад, «Software Development» відповідає найкраще «62.01 Комп'ютерне програмування». Якщо у вас інші, то пошукайте те, чому найбільше відповідаєт

@Yvelious
Yvelious / event-loop.md
Created December 16, 2018 23:36 — forked from jesstelford/event-loop.md
What is the JS Event Loop and Call Stack?

Regular Event Loop

This shows the execution order given JavaScript's Call Stack, Event Loop, and any asynchronous APIs provided in the JS execution environment (in this example; Web APIs in a Browser environment)


Given the code

@Yvelious
Yvelious / readme
Last active November 12, 2018 11:28
SMT: item-filter
name // это лэйбл
type // Один из типов: select, input, multiple_select(мультиселект)
url // Путь откуда тянутся данные через ajax для селекта
api // Идентификатор, если используется внешний API, к примеру import-api
options // Если селект и есть список опций для этого селекта
field // Идентификатор селекта
@Yvelious
Yvelious / Sync_Async_loading_handlebars.js
Created October 9, 2018 20:07 — forked from utsengar/Sync_Async_loading_handlebars.js
synchronous and asynchronous loading of handlebars templates
/*
* This decorates Handlebars.js with the ability to load
* templates from an external source, with light caching.
*
* To render a template, pass a closure that will receive the
* template as a function parameter, eg,
* T.render('templateName', function(t) {
* $('#somediv').html( t() );
* });
* Source: https://github.com/wycats/handlebars.js/issues/82
@Yvelious
Yvelious / nginx.conf
Created July 17, 2018 13:49 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
/* global $, CRD: {}*/
// =require _crd.js
/* More button for navigation items */
$.fn.tabsNavSpoiler = function (enabledOnMediaArrayParam) {
this.each(function () {
var nav,
items,
btn,
/* global $, CRD: {}, serialize */
// =require _crd.js
// =require _serialize.js
CRD.ready(function () {
/*
* Header Main Menu
*/
var mainMenuTitles = $('.js-head-depts > .js-head-dept'),
@Yvelious
Yvelious / 1-server.md
Created June 10, 2018 19:56 — forked from dragonjet/1-server.md
Setup Web Server on EC2 Amazon Linux AMI

Step 1: Server Credentials

This assumes you are now connected to the server via SSH.

  • sudo -s Enter root mode for admin access
  • groupadd devgroup Create new group to be later granted access to /var/www/html

Creating a new Root User

  • useradd -G root,devgroup masterdev Create new root user. Also add to the devgroup
  • passwd masterdev Change password for the new root user
  • At this point, you'll need to input your new root user's new password
[
{
"title": "Ford f-150 2011 Sema Show 2016",
"link": "/gallery/ford/f-150/2017/blue-lariat-with-6-inch-lift-on-asanti-offroad-wheels.html",
"img_counter": "12",
"gallery": {
"2": {
"id": "2",
"img_url": "/path/gallery-pic.jpg",
"description": "some text",
@Yvelious
Yvelious / scrollspy.js
Created December 20, 2016 17:48
scrollspy1
if ($('.js-ptype-lst-nav-fixed').length) {
var ptypeNavFloat = (function () {
var ptypeNav = $('.js-ptype-lst-nav-fixed'),
ptypeNavHolder = $('.ptype-lst-nav-h'),
ptypeBlock = $('.ptype-grid-holder'),
ptypeBtnMore = $('<li class="item -btn-more" />'),
isPartPage = ptypeNav.hasClass('-js-parts'),
ptypeNavHolderTop,
indentHeightNav,
indentBlock,