emo | emo | emo |
---|---|---|
:bowtie: |
😄 :smile: |
😆 :laughing: |
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😀 :grinning: |
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
# References : | |
# - https://stackoverflow.com/questions/61776425/logic-for-real-time-algo-trading-expert | |
import pytz | |
import pandas as pd | |
import MetaTrader5 as mt5 | |
import time | |
from datetime import datetime | |
from threading import Timer |
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
//--------------------------------------------------------------------- | |
// Name: HelloSDL2.cpp | |
// Author: EAML | |
// Date: 2021-05-16 | |
// | |
// Description: | |
// A minimal PoC for producing a native SDL2 Windows app that can | |
// be ran from either Windows Explorer or from Powershell console. | |
// It's designed to use minimal command line, compiler options, | |
// and dependencies... It will display a gray window for 2 sec's. |
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
/* main.css */ | |
header, footer { | |
font: 14px Arial, sans-serif; | |
padding: 8px; | |
color: white; | |
background-color: black; | |
clear: left; | |
text-align: left; | |
} |
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
<# | |
Prerequisites: PowerShell version 2 or above. | |
License: MIT | |
Author: Michael Klement <mklement0@gmail.com> | |
DOWNLOAD, from PowerShell version 3 or above: | |
irm https://gist.github.com/mklement0/243ea8297e7db0e1c03a67ce4b1e765d/raw/Out-HostColored.ps1 | iex |
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
#!/usr/bin/env python -u | |
# -*- coding: UTF-8 -*- | |
#------------------------------------------------------------------------------ | |
# Filename: fancycompleter.py | |
# Author: Antonio Cuni | |
# Mods: EABASE | |
# Last: 2022-01-30 | |
# License: BSD (from: setup.py in original repo) | |
# | |
#------------------------------------------------------------------------------ |
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 | |
#---------------------------------------------------------------------- | |
# Author: EABASE | |
# Date: 2022-01-16 | |
# Version: 1.1 | |
#---------------------------------------------------------------------- | |
# History: | |
# The original file was taken from iterm2 [1], and later modified | |
# by EABASE in [2]. | |
# |
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
# Basic pip search function provided by: | |
# https://pypi.org/project/pip-search/ | |
import sys | |
from urllib import request | |
from tabulate import tabulate | |
def search () : | |
f = request.urlopen('https://pypi.org/search/?q=%s' % sys.argv[1]) | |
raw_text=str(f.read()) |
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
# | |
# To resolve issue #903 in yfinance | |
# https://github.com/ranaroussi/yfinance/issues/903 | |
#---------------------------------------------------------- | |
# Date: 2021-12-19 | |
# | |
# The PEG Ratio Yahoo Finance Paths: | |
# | |
# The working curl: | |
# curl -s https://finance.yahoo.com/quote/{FE}/key-statistics?p={FE} | grep "root.App.main = " | sed -e "s/root.App.main = //" |sed 's/.$//'> dafuck_ok.json |
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
""" Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym. """ | |
import numpy as np | |
import cPickle as pickle | |
import gym | |
# hyperparameters | |
H = 200 # number of hidden layer neurons | |
batch_size = 10 # every how many episodes to do a param update? | |
learning_rate = 1e-4 | |
gamma = 0.99 # discount factor for reward |
NewerOlder