Skip to content

Instantly share code, notes, and snippets.

//
// ViewController.swift
// arrow
//
// Created by MizushimaYusuke on 2018/01/07.
// Copyright © 2018 MizushimaYusuke. All rights reserved.
//
import UIKit
import SceneKit
@mzsima
mzsima / Index.razor
Created May 28, 2019 07:38
Blazor Random Rect
@page "/"
@inject IJSRuntime JsRuntime;
<h1>Call JavaScript Function Example</h1>
<button type="button" class="btn btn-primary" onclick="@DrawRect">
DrawRect
</button>
@mzsima
mzsima / Index.razor
Created May 31, 2019 08:16
blazor_pixijs_linechart
@page "/"
@inject IJSRuntime JsRuntime;
<h1>line chart</h1>
<div id="mypixi"></div>
@functions {
bool first = true;
@mzsima
mzsima / ViewController.swift
Created August 22, 2016 13:10
double ring timer
//
// ViewController.swift
// DoubleRing
//
// Created by MizushimaYusuke on 8/22/16.
// Copyright © 2016 MizushimaYusuke. All rights reserved.
//
import UIKit
import SpriteKit
@mzsima
mzsima / ViewController.swift
Created March 12, 2016 13:27
pentagon rose
//
// ViewController.swift
// PentagonRose
//
// Created by Mizushima Yusuke on 3/12/16.
// Copyright © 2016 Yusuke Mizusima. All rights reserved.
//
import UIKit
import SpriteKit
@mzsima
mzsima / ViewController.swift
Created January 7, 2016 14:02
subtract shape
//
// ViewController.swift
// SubtractShape
//
// Created by MizushimaYusuke on 1/7/16.
// Copyright © 2016 MizushimaYusuke. All rights reserved.
//
import UIKit
@mzsima
mzsima / readme.md
Last active May 30, 2020 15:15
ひらがな、あ行

image

snapshot

code gremlin

hiragana = "あいうえおかきくけこさしすせそたちつてとなにぬねの"


schema.vertexLabel("Letter").ifNotExists().partitionBy("id", Text).create();
schema.edgeLabel('row').ifNotExists().from('Letter').to('Letter').create()

image

snapshot

code jupyternotebook networkx

import matplotlib.pyplot as plt
import networkx as nx

G = nx.cycle_graph(24)
pos = nx.spring_layout(G, iterations=200)
@mzsima
mzsima / readme.md
Created May 27, 2020 16:13
linked list

image

snapshot

code gremlin

schema.vertexLabel("Node").ifNotExists().partitionBy("id", Text).property("value", Text).create();
schema.edgeLabel('next').ifNotExists().from('Node').to('Node').create()
schema.edgeLabel('prev').ifNotExists().from('Node').to('Node').create()
  
 
@mzsima
mzsima / readme.md
Last active May 26, 2020 14:42
1+2のRPN

image

snapshot

code gremlin

schema.vertexLabel("Op").ifNotExists().partitionBy("id", Text).property("value", Text).create();
schema.edgeLabel('next').ifNotExists().from('Op').to('Op').create()
  
  
N1 = g.addV("Op").property("id", "a").property("value", "1").next();