Skip to content

Instantly share code, notes, and snippets.

View a-tarasyuk's full-sized avatar
:octocat:

Oleksandr T. a-tarasyuk

:octocat:
View GitHub Profile
@a-tarasyuk
a-tarasyuk / README.md
Created October 16, 2019 12:43 — forked from robertpainsi/README.md
How to reopen a pull-request after a force-push?

How to reopen a pull-request after a force-push?

Precodinitions

  • You need the rights to reopen pull requests on the repository.
  • The pull request hasn't been merged, just closed.

Instructions

  1. Write down the current commit hash of your PR-branch git log --oneline -1 <PR-BRANCH>
  2. Write down the latest commit hash on github before the PR has been closed.
  3. git push -f origin :
new UglifyJsPlugin({
uglifyOptions: {
compress: {
arrows: false,
booleans: false,
cascade: false,
collapse_vars: false,
comparisons: false,
computed_props: false,
hoist_funs: false,
@a-tarasyuk
a-tarasyuk / Instructions.md
Created June 12, 2018 12:25 — forked from glocore/Instructions.md
Setup React Native on Ubuntu 16.04/16.10

1. Install Node.js

  • Follow the steps given here to install Node.js and NPM.
  • Verify whether NPM is installed by typing npm -v in a terminal window.

2. Install React Native CLI

  • npm install -g react-native-cli

3. Setup Android Development Environment

  • Download and install Android Studio as explained here.
  • Run Android Studio and open the SDK Manager. Under the SDK Platforms tab, check Show Package Details, expand Android 6.0 (Marshmallow) and check the following:
@a-tarasyuk
a-tarasyuk / observer.js
Created July 6, 2017 18:04 — forked from emosher/observer.js
A simple implementation of the Observer pattern in Javascript.
/**
* Observer.js
* This is a program to implement the Observer pattern in JavaScript.
*/
/**
* The Subject "class" constructor.
*/
var Subject = function () {

Files

The basic structure of a React+Flux application (see other examples)

 - /src/actions/AppActions.js     - Action creators (Flux)
 - /src/components/Application.js - The top-level React component
 - /src/constants/ActionTypes.js  - Action types (Flux)
 - /src/core/Dispatcher.js        - Dispatcher (Flux)
 - /src/stores/AppStore.js        - The main store (Flux)
@a-tarasyuk
a-tarasyuk / 1.js
Last active December 14, 2015 04:38 — forked from padolsey/1.js
var x = /x/.toString();
/x/==x