This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Paper = (theme) => { | |
return { | |
MuiPaper: { | |
styleOverrides: { | |
root: { | |
backgroundColor: theme.palette.secondary.light, | |
backgroundImage: 'none', | |
}, | |
}, | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import ArrowBackIosIcon from '@mui/icons-material/ArrowBackIos'; | |
import Box from '@mui/material/Box'; | |
import Button from '@mui/material/Button'; | |
import Grid from '@mui/material/Grid'; | |
import MoodBadIcon from '@mui/icons-material/MoodBad'; | |
import Stack from '@mui/material/Stack'; | |
import Typography from '@mui/material/Typography'; | |
import useDataMediator from 'src/hooks/useDataMediator'; | |
import useGetAssetDetails from 'src/hooks/api/useGetAssetDetails'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import ArrowBackIosIcon from '@mui/icons-material/ArrowBackIos'; | |
import Box from '@mui/material/Box'; | |
import Button from '@mui/material/Button'; | |
import Grid from '@mui/material/Grid'; | |
import MoodBadIcon from '@mui/icons-material/MoodBad'; | |
import Stack from '@mui/material/Stack'; | |
import Typography from '@mui/material/Typography'; | |
import useDataMediator from 'src/hooks/useDataMediator'; | |
import useGetAssetDetails from 'src/hooks/api/useGetAssetDetails'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
from __future__ import print_function, division | |
import sys, os, re, signal, random | |
import time, threading | |
from device_thread import DeviceThread | |
class DeviceThread(threading.Thread): | |
def __init__(self, group=None, target=None, name=None, daemon=True, args=(), kwargs={}): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dockerfile | |
FROM python:2-alpine3.7 | |
WORKDIR /usr/src/app | |
COPY requirements.txt ./ | |
RUN pip install --no-cache-dir -r requirements.txt | |
COPY . . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: set fileencoding=utf-8 | |
import random | |
from Queue import Queue | |
random.seed(1234) | |
# initialization ------------------------------------------ | |
N = 10 | |
pStart = 0 | |
pEnd = N - 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: set fileencoding=utf-8 | |
import sys, os, re, glob, copy | |
from collections import namedtuple | |
# | |
# It's critical to inherit all classes from "object" base class | |
def get_size(obj, seen=None): | |
"""Recursively finds size of objects""" | |
size = sys.getsizeof(obj) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eux | |
HOME_DIR=`realpath ~` | |
MT_DIR="$HOME_DIR/.wine32/drive_c/Program\ Files/MetaTrader\ 5" | |
f='' | |
cd ~/tmp | |
rm -rf mql-zmq | |
git clone https://github.com/dingmaotu/mql-zmq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/bastibe/lunatic-python | |
https://stackoverflow.com/questions/20400390/how-to-call-a-python-function-from-lua | |
git clone https://github.com/bastibe/lunatic-python.git | |
sudo apt-get install python2.7-dev | |
sudo apt-get install lua5.2 | |
sudo apt-get install lua5.2-dev | |
pkg-config --cflags python-2.7 | |
sudo python setup.py install |