Skip to content

Instantly share code, notes, and snippets.

@mzsima
mzsima / README.md
Last active May 5, 2020 14:25
Taro が Jiro を follow

イメージ

Screen Shot 2020-05-05 at 23 20 29

@mzsima
mzsima / Index.razor
Last active June 18, 2019 14:00
blazor_d3_sparkline_bar
@page "/"
@using System.Collections.Generic
@using MathNet.Numerics.Random;
@using MathNet.Numerics.Distributions;
@using System.Linq;
@inject IJSRuntime JsRuntime;
<h1>sparklines bar</h1>
@if (records == null)
@page "/"
@using System.Collections.Generic
@using MathNet.Numerics.Random;
@using MathNet.Numerics.Distributions;
@using System.Linq;
@inject IJSRuntime JsRuntime;
<h1>sparklines bar</h1>
@if (records == null)
@mzsima
mzsima / Index.razor
Created June 14, 2019 15:22
blazor_sigmajs_click
@page "/"
@inject IJSRuntime JsRuntime;
<h1>sigma click</h1>
<div id='container' style="width:300px;height:300px;margin: auto;"></div>
@code {
protected override async Task OnAfterRenderAsync() {
await JsRuntime.InvokeAsync<Object> ("myHelper.setup", "");
@mzsima
mzsima / Index.razor
Created June 13, 2019 15:02
blazor_hello_sigma_js
@page "/"
@inject IJSRuntime JsRuntime;
<h1>Hello, sigma.js</h1>
<div id='container' style="width:100px;height:100px"></div>
@code {
protected override async Task OnAfterRenderAsync() {
await JsRuntime.InvokeAsync<Object> ("myHelper.setup", "");
@mzsima
mzsima / Index.razor
Created June 12, 2019 14:13
blazor_vega_bar_chart
@page "/"
@inject HttpClient Http;
@inject IJSRuntime JsRuntime;
<h1>Vega bar chart</h1>
<div id="view"></div>
@functions {
@mzsima
mzsima / Index.razor
Created June 10, 2019 14:18
blazor_d3_scatter_plot
@page "/"
@using System.Collections.Generic;
@inject IJSRuntime JsRuntime;
<h1>D3 scatter plot</h1>
<div id="my_data"></div>
@functions {
struct MyData {
@mzsima
mzsima / Index.razor
Last active June 7, 2019 15:16
blazor_d3_heatmap
@page "/"
@using System.Collections.Generic;
@inject IJSRuntime JsRuntime;
<h1>D3 heatmap</h1>
<div id="my_dataviz"></div>
@functions{
@mzsima
mzsima / Index.razor
Last active June 6, 2019 14:41
blazor_c3js_sparklines
@page "/"
@using System.Collections.Generic
@inject IJSRuntime JsRuntime;
<h1>c3js sparklines</h1>
@if (records == null)
{
<p><em>Loading...</em></p>
}
@mzsima
mzsima / Index.razor
Created June 6, 2019 14:36
blazor_c3js_sparklines
@page "/"
@using System.Collections.Generic
@inject IJSRuntime JsRuntime;
<h1>c3js sparklines</h1>
@if (records == null)
{
<p><em>Loading...</em></p>
}