Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Linq;
namespace MainTrade
{
public class KNNRegressionLorenzian
{
private List<STOCK> _data;
@kiranmaya
kiranmaya / BuildName
Last active November 25, 2023 01:02
MaximoTicketAndroidApp
{
"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"
}
@kiranmaya
kiranmaya / exploratory_device.verse
Last active March 27, 2023 07:27 — forked from spilth/exploratory_device.verse
Making class attribute editable in UEFN , Variable declaration.
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
@kiranmaya
kiranmaya / Unreal Verse
Last active March 25, 2023 19:38
UEFN verse Cheat codes
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
@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; }
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()
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';
@kiranmaya
kiranmaya / gist:0e3b528e2b17265067afc9ad4ba0d94e
Created July 6, 2020 18:33
Zerodha Kite Brokerage Calculation
//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;
@kiranmaya
kiranmaya / notes
Created February 7, 2020 23:07
Colab python
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)
public class testDQN
{
public class Env
{
int n_action;
int n_expericePool;
int n_expericeSamples;
int n_samplesEveryType;
int NDaction_last = 0;