Skip to content

Instantly share code, notes, and snippets.

View n-lavrenko's full-sized avatar
🏠
Working from home

Nikita Lavrenko n-lavrenko

🏠
Working from home
  • Joiny
  • Georgia
  • 19:22 (UTC +04:00)
View GitHub Profile
@n-lavrenko
n-lavrenko / README.md
Created March 21, 2015 19:35
AngularJS Guidline

Global Guidlines

Filesystem Naming:

  • Lowercase
  • Dashes Between Words
  • Apply to Folder & Files
my-folder / my-file.css
@n-lavrenko
n-lavrenko / guideline.md
Last active August 29, 2015 14:21
AngularJS GuideLine

Global Guidlines

Filesystem Naming:

  • Lowercase
  • Dashes Between Words
  • Apply to Folder & Files
my-folder / my-file.css
@n-lavrenko
n-lavrenko / gist:6e74d7053673af7baed3
Last active November 22, 2015 00:38
For travel-project code example
//product.model.js
(function () {
'use strict';
angular
.module('conta')
.factory('Product', ProductModel);
/**
@n-lavrenko
n-lavrenko / bongo.sh
Created October 29, 2017 21:30 — forked from jinihl/bongo.sh
LOADING=false
usage()
{
cat << EOF
usage: $0 [options] dbname
OPTIONS:
-h Show this help.
-l Load instead of export
@n-lavrenko
n-lavrenko / ec2 nodejs mongodb install guide.md
Created November 4, 2017 18:54
ec2 nodejs mongodb install guide

First step: Installing node.js and npm

To compile node we need gcc, make and git to import node source code:

sudo yum install gcc-c++ make
sudo yum install openssl-devel
sudo yum install git

Cloning node.js source code:

git clone https://github.com/nodejs/node.git

@n-lavrenko
n-lavrenko / edit_bars_and_ticks.py
Last active May 22, 2020 14:45
Python script that read .csv files that contain historical data of bars and ticks (in separate files), auto define winter weeks, based on data in file; change timezone, remove historical data on Saturdays and decrease 1 hour at winter weeks and write updated data to the new file.
# I use this script for make historical data of Ducascopy identical with FxClub forex broker.
# Then I can make deep historical optimization in MetaTrader 5 and use results in real trading on FxClub.
# You can edit some variables in code and code itself to edit Ducascopy historical data to make data as you need.
# Good luck.
import time
import pandas as pd
symbol = 'AUDUSD'
@n-lavrenko
n-lavrenko / logs
Last active December 21, 2022 08:31
Docker errors. Updated!
nikita@MBP-Nikita gait-backend % docker-compose up --build --force-recreate
WARN[0000] The "RFook9WPRmDlk9rEOb" variable is not set. Defaulting to a blank string.
[+] Building 1.9s (9/9) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 32B 0.0s
=> [internal] load .dockerignore
@n-lavrenko
n-lavrenko / .log
Last active December 22, 2022 10:07
Docker logs v2
nikita@MBP-Nikita gait-backend % docker-compose up
WARN[0000] The "RFook9WPRmDlk9rEOb" variable is not set. Defaulting to a blank string.
[+] Building 2.5s (15/15) FINISHED
=> [gait-backend-api internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 32B 0.0s
=> [gait-backend-db internal] load build def