Skip to content

Instantly share code, notes, and snippets.

View tychota's full-sized avatar
💭
I may be slow to respond.

Tycho Tatitscheff tychota

💭
I may be slow to respond.
View GitHub Profile
@tychota
tychota / 01-createObservableFromDeviceEventEmitter.js
Created December 19, 2018 10:14 — forked from sectore/01-createObservableFromDeviceEventEmitter.js
[React Native + RxJS] Create an Observable from DeviceEventEmitter - An example to handle 'locationUpdated' event
import React, {DeviceEventEmitter} from 'react-native';
import {Observable} from 'rx-lite'
/**
* Creates an Observable to listen to any event of DeviceEventEmitter
* @param type {string} Event type
*/
export default createObservableFromDeviceEventEmitter$ = type => {
let subscription;
return Observable.fromEventPattern(
@tychota
tychota / IntelliJ_IDEA__Perf_Tuning.txt
Created December 22, 2016 14:45 — forked from P7h/IntelliJ_IDEA__Perf_Tuning.txt
Performance tuning parameters for IntelliJ IDEA. Add these params in idea64.exe.vmoptions or idea.exe.vmoptions file in IntelliJ IDEA. If you are using JDK 8.x, please knock off PermSize and MaxPermSize parameters from the tuning configuration.
-server
-Xms2048m
-Xmx2048m
-XX:NewSize=512m
-XX:MaxNewSize=512m
-XX:PermSize=512m
-XX:MaxPermSize=512m
-XX:+UseParNewGC
-XX:ParallelGCThreads=4
-XX:MaxTenuringThreshold=1
@tychota
tychota / ex-navigation.md
Created November 18, 2016 16:34 — forked from knowbody/ex-navigation.md
My exponent's ex-navigation docs/thoughts

Exponent - ex-navigation

This is for now, for my personal use only, things might not be correctly explained here. For the official docs please check: https://github.com/exponentjs/ex-navigation/blob/master/README.md

Navigation bar configuration

On every screen you can use the built-in navigation bar, you can add a title, left button, right button or change navigation bar’s style. All you need to do is pass appropriate params to navigationBar in the route configuration:

import React, { Component } from 'react';
@tychota
tychota / redux-saga_0.9.5.js
Created August 8, 2016 00:29
Redux-Saga Flowtype (totally rough and unfinished)
/* eslint-disable */
declare type $npm$ReduxSaga$IOEffect = {
'@@redux-saga/IO': true,
}
declare type $npm$ReduxSaga$TakeEffect = $npm$ReduxSaga$IOEffect & {
TAKE: string,
};
@tychota
tychota / sysctl.conf
Created July 2, 2016 15:28 — forked from kgriffs/sysctl.conf
Linux Web Server Kernel Tuning
# Configuration file for runtime kernel parameters.
# See sysctl.conf(5) for more information.
# See also http://www.nateware.com/linux-network-tuning-for-2013.html for
# an explanation about some of these parameters, and instructions for
# a few other tweaks outside this file.
# Protection from SYN flood attack.
net.ipv4.tcp_syncookies = 1