Skip to content

Instantly share code, notes, and snippets.

@Belobobr
Belobobr / MySQL_macOS_Sierra.md
Created July 5, 2019 08:07 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

@Belobobr
Belobobr / webpack.config.js
Created June 5, 2018 10:54 — forked from tschoffelen/webpack.config.js
Tricking PHPStorm in supporting React Native path aliases.
/**
* Why is this here you ask? React Native doesn't use Webpack. True. This file is here to trick
* IDEA in recognizing module aliases (see the package.json files in some of the subdirs).
* Nice solution? No. Does it work? Sure.
* Tracker URL: https://youtrack.jetbrains.com/issue/WEB-23221
*
* - TS
*/
const fs = require('fs')
import {combineReducers} from 'redux';
import {createApiReducer} from './utils';
import {
CATEGORIES,
CHANNELS,
COUNTRIES,
filterLoadedAction,
filterLoadingAction,
filterLoadingErrorAction,
GENRES,
@Belobobr
Belobobr / Channels
Created May 19, 2018 21:13
Selectors
// @flow
/* Channels */
import {createSelector} from 'reselect'
import t from '../../localization/index';
import type {State} from "../../reducers/index";
import type {MostWatchedChannel} from "../../reducers/channels";
import type {
AllChannelsDeviation,
FilterValues,
MostPopularChannelsDeviation,
@Belobobr
Belobobr / Repository
Created May 19, 2018 21:05
android sample rx-mvvm
package com.alphaott.webtv.client.android.data
import com.alphaott.webtv.client.android.injection.SingletonHolderSingleArg
import com.alphaott.webtv.client.api.entities.contentgroup.category.Category
import com.alphaott.webtv.client.api.entities.contentgroup.genre.Genre
import com.alphaott.webtv.client.api.entities.contentitem.MediaStream
import com.alphaott.webtv.client.api.entities.contentitem.channel.tv.TvChannel
import com.alphaott.webtv.client.api.entities.dictionary.country.Country
import com.alphaott.webtv.client.api.entities.dictionary.language.Language
import io.reactivex.Observable
@Belobobr
Belobobr / Action Descriptions
Created May 14, 2018 17:03
Sample arhitecture
//Это описание action с flow ибо немного лень писать бойлерплейт
module.exports = {
actionsDescriptions: {
addFlightToUserRequest: {
requestVariables: 'AddFlightToUserMutationVariables',
scheduledFlight: 'FlightFieldsFragment',
},
addFlightToUserSuccess: {
flight: 'FlightFieldsFragment',