Skip to content

Instantly share code, notes, and snippets.

using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using System.Diagnostics;
using TpaoWebApp.Areas.Identity.Data;
using TpaoWebApp.Data;
using TpaoWebApp.Model;
using TpaoWebApp.Models;
namespace TpaoWebApp.Controllers
@using Newtonsoft.Json;
@using TpaoWebApp.Model;
@using Microsoft.AspNetCore.Identity
@using TpaoWebApp.Areas.Identity.Data;
@model TpaoWebApp.Model.JsonDataModel;
@inject SignInManager<ApplicationUser> SignInManager
@inject UserManager<ApplicationUser> UserManager
<!DOCTYPE html>
@{
var day = DateTime.Now.Day;
var month = DateTime.Now.Month;
var year = DateTime.Now.Year;
var dayName = DateTime.Now.DayOfWeek.ToString();
}
<!DOCTYPE html>
<html style="font-size: 16px;" lang="tr">
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.17.0/xlsx.full.min.js"></script>
</head>
<body>
<div id="plot"></div>
<input type="file" id="excelFileInput" accept=".xls" />
<input type="file" id="fileInput" accept=".json" multiple />
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.17.0/xlsx.full.min.js"></script>
</head>
<body>
<div id="plot"></div>
<input type="file" id="excelFileInput" accept=".xls" />
<input type="file" id="fileInput" accept=".json" multiple />
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.17.0/xlsx.full.min.js"></script>
</head>
<body>
<input type="file" id="jsonFileInput">
<div id="plot" width="900" height="900"></div>
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.17.0/xlsx.full.min.js"></script>
</head>
<body>
<div id="plot"></div>
<input type="file" id="excelFileInput" accept=".xls" />
<input type="file" id="fileInput" accept=".json" />
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.17.0/xlsx.full.min.js"></script>
</head>
<body>
<div id="plot"></div>
<input type="file" id="excelFileInput" accept=".xls" />
<input type="file" id="fileInput" accept=".json" />
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.17.0/xlsx.full.min.js"></script>
</head>
<body>
<div id="plot"></div>
<input type="file" id="excelFileInput" accept=".xls" />
<input type="file" id="fileInput" accept=".json" />
import math
def cartesian_to_spherical(x, y, z):
r = math.sqrt(x**2 + y**2 + z**2)
theta = math.atan2(y, x)
phi = math.acos(z / r)
return r, theta, phi
# Örnek kullanım
x = 1.0