Skip to content

Instantly share code, notes, and snippets.

@kevincarpdev
kevincarpdev / README.txt
Created July 18, 2022 22:17
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
REMIX DEFAULT WORKSPACE
Remix default workspace is present when:
i. Remix loads for the very first time
ii. A new workspace is created
iii. There are no files existing in the File Explorer
This workspace contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// ©jdehorty
// @version=5
indicator('Machine Learning: Lorentzian Classification', 'Lorentzian Classification', true, precision=4, max_labels_count=500)
import jdehorty/MLExtensions/2 as ml
import jdehorty/KernelFunctions/2 as kernels
// ====================
@kevincarpdev
kevincarpdev / Volume Profile Price by Volume - Fixed Range.pine
Created April 3, 2023 14:36
Volume Profile Price by Volume - Fixed Range
//@version=5
// ══════════════════════════════════════════════════════════════════════════════════════════════════ //
//# * ══════════════════════════════════════════════════════════════════════════════════════════════
//# *
//# * Study : Volume Profile / Price by Volume - Fixed Ragne
//# * Author : © dgtrd
//# *
//# * Revision History
//# * Release : Feb 23, 2022
//# * Update : Feb 27, 2022 : added volume indicator (histogram)
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © capissimo
//@version=5
indicator('Machine Learning: kNN-based Strategy', 'ML-kNN', true, max_labels_count=300, format=format.price, precision=2, timeframe="", timeframe_gaps=true)
// kNN-based Strategy (FX and Crypto)
// Description:
// This strategy uses a classic machine learning algorithm - k Nearest Neighbours (kNN) -
// to let you find a prediction for the next (tomorrow's, next month's, etc.) market move.
//@version=3
study(title="EMA Ribbon [Krypt]", shorttitle="EMA Ribbon", overlay=true)
dropn(src, n) =>
na(src[n]) ? na : src
length1 = input(20, title="MA-1 period", minval=1)
length2 = input(25, title="MA-2 period", minval=1)
length3 = input(30, title="MA-3 period", minval=1)
length4 = input(35, title="MA-4 period", minval=1)
import React from 'react';
import { View } from 'react-native';
import { observer } from 'mobx-react';
import mobxStore from '../store/RootStore';
// COMPONENTS
import { Header, NotificationPopup } from '.';
import { BAlert, FocusAwareStatusBar } from './Common';
import {
KYCLockedOutModal,
import React, { useState, useEffect, useRef } from 'react';
import { useNavigation } from '@react-navigation/native';
import {
View,
TouchableOpacity,
ScrollView,
StyleSheet,
NativeSyntheticEvent,
NativeScrollEvent,
Animated,
import React, { useState, useEffect } from 'react';
import { View, Text, TouchableOpacity, ActivityIndicator } from 'react-native';
import { useNavigation } from '@react-navigation/native';
import { BButton, BSeparator, SizedBox, BIcon } from '../../../../../components';
import { useAuthContext } from '../../../../../context/auth/auth.context';
// STYLES
import { CONSTANT_COLOR, CONSTANT_SIZE, GLOBAL_STYLE, icons } from '../../../../../assets';
import { DRAWER_ROUTES_NAMES } from '../../../../../router/DrawerNavigator';
import { ApiClient } from '../../../../../api';
import React, { useState, useEffect } from 'react';
import { View, Text, TouchableOpacity, ActivityIndicator } from 'react-native';
import { useNavigation } from '@react-navigation/native';
import { BButton, BSeparator, SizedBox, BIcon } from '../../../../../components';
import { useAuthContext } from '../../../../../context/auth/auth.context';
// STYLES
import { CONSTANT_COLOR, CONSTANT_SIZE, GLOBAL_STYLE, icons } from '../../../../../assets';
import { DRAWER_ROUTES_NAMES } from '../../../../../router/DrawerNavigator';
import { ApiClient } from '../../../../../api';
{ "L5CONNECTOR_PORT_80_TCP_PORT": "80", "LOG_PORT_80_TCP_PROTO": "tcp", "LX_PAM_NOTIFICATIONS_PORT": "tcp:\/\/192.168.0.162:8080", "LX_PAM_NOTIFICATIONS_SERVICE_PORT": "8080", "AUTH_UI_PORT_80_TCP_PORT": "80", "SCHEDULER_SERVICE_PORT_SCHEDULERPORT": "8080", "MESSAGING_UI_SERVICE_PORT": "80", "MESSAGING_UI_SERVICE_PORT_MESSAGINGUIPORT": "80", "KUBERNETES_PORT": "tcp:\/\/192.168.0.1:443", "LX_PAM_PROMOS_PORT": "tcp:\/\/192.168.0.44:8080", "MY_REDIS_PORT_6379_TCP": "tcp:\/\/192.168.0.197:6379", "SCHEDULER_SERVICE_PORT": "8080", "AUTH_UI_PORT_80_TCP_PROTO": "tcp", "LX_PAM_PROMOS_SERVICE_PORT": "8080", "MESSAGING_UI_PORT": "tcp:\/\/192.168.0.120:80", "KUBERNETES_SERVICE_PORT": "443", "L10_MYSQL_PORT_3306_TCP_PORT": "3306", "SCHEDULER_PORT": "tcp:\/\/192.168.0.208:8080", "L5CONNECTOR_PORT_80_TCP_PROTO": "tcp", "SECRET_MYSQL_PASSWORD": "l10", "NOTIFICATION_MANAGEMENT_SERVICE_PORT_8080_TCP_PORT": "8080", "AUDITING_UI_SERVICE_HOST": "192.168.0.59", "L10_MYSQL_SERVICE_HOST": "192.168.0.76", "L10_MYSQL_PORT_3306_TCP_PRO