Skip to content

Instantly share code, notes, and snippets.

View nikneroz's full-sized avatar
🦄

Denis Rozenkin nikneroz

🦄
View GitHub Profile
@nikneroz
nikneroz / faq.md
Last active June 29, 2023 09:12
Grid Capital FAQ

FAQ Support Pages for Grid Capital

What you need to get started

  1. Do I need to be an experienced trader to use Grid Capital?

    No, Grid Capital is designed to accommodate both experienced traders and beginners. Our platform's intuitive design ensures that anyone can navigate and make trades with ease.

  2. What do I need to start trading on Grid Capital?

@nikneroz
nikneroz / PMI.md
Last active November 29, 2021 09:21

NER deployment

cd ~/pmi
git clone ssh://[email protected]:222/mfti/vectorx-ner.git
cd ~/pmi/vectorx-ner/Docker
docker-compose -f docker-compose.yml build
docker-compose -f docker-compose.yml up

Проверяем через Postman и Ctrl+C чтобы остановить сервис

package com.example.player
import android.app.Activity
import android.content.Intent
import android.media.MediaPlayer
import android.net.Uri
import android.os.Build
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.provider.MediaStore
@nikneroz
nikneroz / Cassandra DB.md
Created September 9, 2019 13:57
Cassandra DB

What is Cassandra DB?

Cassandra is written in Java and was open-sourced by Facebook in July 2008. This original version of Cassandra was written primarily by an ex-employee from Amazon and one from Microsoft. It was strongly influenced by Dynamo, Amazon’s pioneering distributed key/value database. Cassandra implements a Dynamo-style replication model with no single point of failure, but adds a more powerful “column family” data model.

Cassandra has become so popular because of its outstanding technical features. It isdurable, seamlessly scalable, and tuneably consistent. It performs blazingly fast writes, can store hundreds of terabytes of data, and is decentralized and symmetrical so there’sno single point of failure. It is highly available and offers a schema-free data model

Where Can I use Cassandra DB?

  • Large-scale, high-volume websites, such as Web 2.0 social applications
  • High-performance, decentr
@nikneroz
nikneroz / planning.md
Last active June 2, 2019 15:41
Migration Plan

Auth ~ 1-2 weeks

Estimations

  • Base logic ~ 1 week
  • Controllers/Views/Mailers ~ 1 week

Authentication:

Library

@nikneroz
nikneroz / puma.rb
Created May 30, 2019 11:03
Ubuntu Rails deployments(RVM, Puma, Mina, Nginx)
#!/usr/bin/env puma
# start puma with:
# RAILS_ENV=production bundle exec puma -C ./config/puma.rb
# threads_count = ENV.fetch("RAILS_MAX_THREADS") { 16 }
rails_env = 'production'
app_path = '/home/deploy/my_app'
current_path = "#{app_path}/current"
@nikneroz
nikneroz / init.vim
Last active December 28, 2021 20:32
Neovim config
if &compatible
set nocompatible " Be iMproved
endif
" Required:
call plug#begin('~/.cache/vim-plug')
" Autocomplete && Syntax checker
" Elixir coc settings: https://github.com/JakeBecker/vscode-elixir-ls/blob/master/package.json
source $HOME/.config/nvim/modules/coc.vimrc
@nikneroz
nikneroz / redux_saga.md
Last active December 23, 2021 20:33
Лекция №3: Redux-Saga
API_CALL_REQUEST описывает что мы начинаем процесс получения данных с API
API_CALL_SUCCESS описывает что store успешно получил данные и процесс получения данных завершен
API_CALL_FAILURE описывает что API вызов завершился ошибкой
@nikneroz
nikneroz / react_redux.md
Last active November 16, 2019 13:15
Лекция №2: React & Redux.

React

Функциональные и классовые компоненты

const WelcomeComponent = (props) =>
  <h1>Hello, {props.name}</h1>
class WelcomeComponent extends React.Component {
@nikneroz
nikneroz / typescript_overview.md
Last active December 11, 2018 12:49
Typescript overview

Typescript

TypeScript — это надмножество JavaScript, то есть, любой код на JS является правильным с точки зрения TypeScript. Однако, TypeScript обладает некоторыми дополнительными возможностями, которые не входят в JavaScript. Среди них — строгая типизация (то есть, указание типа переменной при её объявлении, что позволяет сделать поведение кода более предсказуемым и упростить отладку), механизмы объектно-ориентированного программирования и многое другое. Браузеры не поддерживают TypeScript напрямую, поэтому код на TS надо транспилировать в JavaScript.

Типы данных в TypeScript

TypeScript поддерживает различные типы данных. Среди них можно отметить следующие:

let a: number      //например: 1, 2, 3