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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace MainTrade | |
{ | |
public class KNNRegressionLorenzian | |
{ | |
private List<STOCK> _data; |
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
{ | |
"AndroidLatestVersion": "1.0", | |
"DownloadAndUrl": "https://play.google.com/store/apps/details?id=com.playrix.gardenscapes", | |
"IOSLatestVersion": "1.0", | |
"DownloadIOSUrl": "https://your-ios-download-url.com" | |
} |
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
using { /Fortnite.com/Devices } | |
using { /Verse.org/Simulation } | |
using { /UnrealEngine.com/Temporary/Diagnostics } | |
using { /UnrealEngine.com/Temporary/SpatialMath } | |
direction := enum{Up, Down, Left, Right} | |
coordinates := struct<concrete>: | |
@editable | |
X : float = 0.0 |
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
There is no start,update ,oncoillisionEnter like Unity monobehavuour or Actor unreal,everything is subscribe event based . | |
OnBegin is there tough ,but its a class starting point. | |
Creating a New Device with Verse , Our code is also a device ,their framework is around dealing everything as a devices. | |
Not objects or actors,these device contain objects,components. | |
Every script is a device, | |
our code may not a be component. lets see. | |
Note:Logic is boolean ,logic as a type | |
Tought ,their class decleration is worst ,but they do provide a template to starting point . so blank class is not a option for us . | |
var is for variable ,undeclaring is constant |
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
@namespace Components | |
<MudChart ChartType="ChartType.Bar" ChartSeries="@Series" | |
XAxisLabels="@XAxisLabels.ToArray()" | |
Width="100%" Height="350px" ChartOptions="chartOptions"></MudChart> | |
@code { | |
[Parameter] public string SeriesName { get; set; } |
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
You have to use "::deep" on CSS that is applied to custom components such as MudBlazor components. Custom components have to be enclosed in a nativ component thus the "<div>". | |
"::deep" CSS does not work on nativ components as it seems. | |
@page "/" | |
<h1>@pageTitle</h1> | |
<div class="mainPaper"> | |
@DateTime.Now.ToLongTimeString() |
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 React from 'react' | |
import IconButton from '@material-ui/core/IconButton'; | |
import { render } from 'react-dom'; | |
import Modal from '@material-ui/core/Modal'; | |
import Backdrop from '@material-ui/core/Backdrop'; | |
import Fade from '@material-ui/core/Fade'; | |
import Paper from '@material-ui/core/Paper'; | |
import Grid from '@material-ui/core/Grid'; | |
import { makeStyles } from '@material-ui/core/styles'; | |
import { Divider, Typography } from '@material-ui/core'; |
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
//Order Value is StockPrice X Quanity | |
//This is INTRADAY EQUITY,for Futures Change Percentages of charges as stated in brokerage caliculator page | |
static decimal GetBrokerage(decimal OrderValue) | |
{ | |
decimal brokerage = 0; | |
decimal zerodhaFee = OrderValue * 0.0003m; | |
if( zerodhaFee > 20 ) zerodhaFee = 20; | |
zerodhaFee *= 2; | |
brokerage += zerodhaFee; |
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
saving model in gogle drive | |
from google.colab import drive | |
drive.mount('/content/gdrive') | |
model_save_name = 'classifier.pt' | |
path = F"/content/gdrive/My Drive/{model_save_name}" | |
torch.save(model.state_dict(), path) | |
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
public class testDQN | |
{ | |
public class Env | |
{ | |
int n_action; | |
int n_expericePool; | |
int n_expericeSamples; | |
int n_samplesEveryType; | |
int NDaction_last = 0; |
NewerOlder