Skip to content

Instantly share code, notes, and snippets.

View soter19's full-sized avatar
🪲
Hunting bugs

Soter soter19

🪲
Hunting bugs
View GitHub Profile
@soter19
soter19 / git-deployment.md
Created January 29, 2020 18:01 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

@soter19
soter19 / CONCURRENCY.md
Created September 12, 2018 14:00 — forked from montanaflynn/CONCURRENCY.md
Examples of sequential, concurrent and parallel requests in node.js

Concurrency in JavaScript

Javascript is a programming language with a peculiar twist. Its event driven model means that nothing blocks and everything runs concurrently. This is not to be confused with the same type of concurrency as running in parallel on multiple cores. Javascript is single threaded so each program runs on a single core yet every line of code executes without waiting for anything to return. This sounds weird but it's true. If you want to have any type of sequential ordering you can use events, callbacks, or as of late promises.

@soter19
soter19 / index.js
Last active August 31, 2018 18:27 — forked from codetony25/cloudSettings
Material UI Dialog Higher Order Component (HOC)
import React from "react";
import { render } from "react-dom";
import Button from "material-ui/Button";
import Dialog from "material-ui/Dialog";
/**
* Accepts a function that maps owner props to a new collection of props that
* are passed to the base component.
*
* mapProps() pairs well with functional utility libraries like lodash/fp.