Skip to content

Instantly share code, notes, and snippets.

Avatar

Satoshi Terasaki terasakisatoshi

View GitHub Profile
View GeometryRecipes.jl
module GeometryRecipes
using RecipesBase
using StaticArrays:FieldVector
using Random
# types
export Point2D, Point3D, Circle2D, Circle3D
struct Point2D{T} <: FieldVector{2,T}
@terasakisatoshi
terasakisatoshi / goma.json
Created Oct 10, 2021
Ctrl-M to Esc Karabiner-Element
View goma.json
{
"title": "rules for Jupyter on VSCode",
"rules": [
{
"description": "Ctrl-M to Esc",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "m",
@terasakisatoshi
terasakisatoshi / staticarrays_fieldvector.ipynb
Created Oct 3, 2021
StaticArrays.FieldVector in action
View staticarrays_fieldvector.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@terasakisatoshi
terasakisatoshi / heatbath.ipynb
Created Oct 2, 2021
これならわかる機械学習入門 Chap10 ~ Chap 11
View heatbath.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View point_cloud.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@terasakisatoshi
terasakisatoshi / result.html
Last active Sep 13, 2021
study point cloud
View result.html
This file has been truncated, but you can view the full file.
<html>
<head><meta charset="utf-8" /></head>
<body>
<div> <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: 'local'};</script>
<script type="text/javascript">/**
* plotly.js v2.4.2
* Copyright 2012-2021, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
@terasakisatoshi
terasakisatoshi / textui.jl
Created Sep 11, 2021
TextUserInterfaces.jl
View textui.jl
using InteractiveUtils
using TextUserInterfaces
function main()
init_tui()
w, c = create_window_with_container(border=true, title="MyFirstUI")
label_1 = @tui_label(
parent = c, left = 0, top = 0,
text = "This app is created based on TextUserInterfaces.jl"
)
View hexagon_something.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Embed_Tweets.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@terasakisatoshi
terasakisatoshi / mcmc_mh.ipynb
Last active Sep 25, 2021
metropolis hasting alg
View mcmc_mh.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.