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 / exo3.js
Last active January 7, 2016 12:07
Th. Exo 3
'use strict';
let solutions = {};
let bestPathValue = 0;
let crop = (mat, col_start, row_start, col_end, row_end) => {
col_end = col_end || mat.length;
row_end = row_end || mat[0].length;
return mat.slice(col_start, col_end).map(
row => row.slice(row_start, row_end)
@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

Keybase proof

I hereby claim:

  • I am tychota on github.
  • I am tychota (https://keybase.io/tychota) on keybase.
  • I have a public key ASDM5uQIj9CCv7nV0XQQkrQvRe_7cj1TDjoLUvKylpGTPQo

To claim this, I am signing this object:

@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 / 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 / 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 / pre-commit.sh
Last active March 9, 2017 18:07
Prettier commit hook
#!/bin/bash
# The latest version of this hook is available on GitHub;
# https://github.com/sheredom/git-hooks
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
#cloud-config
hostname: coreos-1
users:
- name: tycho
passwd: $6$rounds=4096$WpkNikn7myfzFqV$Y8VEtwQ57v.AC8gGGXfAPL3l/t8gNeVGQc3oK/JvSvsGGZgD3w6Hd52.9WoSY4a86GPpaLISd0QEjnbdl5Jch.
groups:
- sudo
- docker
coreos:
04fa652f86a4d25e5d1684c378da3ddc708f2369e45d34415bf419ef06d784f584b7fa40f4bed163a0ff50cd9ddb7b967ca44ea86090dfa8891fa798bdebc35da0
@tychota
tychota / rn-fast-image.diff
Created March 14, 2018 18:28
Diff between fork and upstream
diff --git a/.babelrc b/.babelrc
index 184f5ae..f4fbf13 100644
--- a/.babelrc
+++ b/.babelrc
@@ -1,6 +1,4 @@
{
- "presets": [
- "react-native"
- ]
+"presets": ["react-native"]