Skip to content

Instantly share code, notes, and snippets.

View f-ttok's full-sized avatar

Fuminori TATSUOKA f-ttok

View GitHub Profile
@f-ttok
f-ttok / 2022-03-13_DifferentialEquations.jlの紹介.ipynb
Created March 15, 2022 00:01
DifferentialEquations.jlの紹介
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@f-ttok
f-ttok / latex.json
Last active November 9, 2020 02:45
latex.json (snippets for VS code)
{
// Place your snippets for latex here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@f-ttok
f-ttok / material_colors.py
Created December 10, 2019 06:49
Colors from the Material Design (https://material.io/) for matplotlib. Usage: `from material_colors import *`.
# Material colors
# https://material.io/design/color/the-color-system.html#tools-for-picking-colors
red_50 = "#ffebee"
red_100 = "#ffcdd2"
red_200 = "#ef9a9a"
red_300 = "#e57373"
red_400 = "#ef5350"
red_500 = "#f44336"
red_600 = "#e53935"
@f-ttok
f-ttok / settings.json
Last active March 28, 2020 09:04
Setting for VS Code.
{
"editor.fontFamily": "'Consolas', 'メイリオ', monospace",
"editor.cursorStyle": "line",
"files.exclude": {
"**/*.out": true
},
"editor.autoClosingBrackets": "always",
"editor.autoClosingQuotes": "always",
"editor.wordWrap": "on",
"editor.tokenColorCustomizations": {
@f-ttok
f-ttok / ellipj.jl
Created August 3, 2019 05:20
Compute Jacobi elliptic functions for a complex parameter by using `sicpy.special.ellipj`. This is Julia implementation of [ELLIPJI by Moiseev Igor](https://www.mathworks.com/matlabcentral/fileexchange/17747-jacobi-elliptic-functions-sn-cn-and-dn-of-complex-phase).
using PyCall
special = pyimport("scipy.special")
ellipj(u::Float64, m::Float64) = special.ellipj(u, m)[1:3]
"""
ellipj(u::ComplexF64, m::Float64)
@f-ttok
f-ttok / macro.tex
Last active March 15, 2020 16:57
A macro (mathbb, mathbf, bm, mathcal, mathfrak, mathrm) for writing latex documents. ヾ(o゚ω゚o)ノ゙らくちーん
% mathbb
\newcommand{\bba}{\mathbb{a}}
\newcommand{\bbb}{\mathbb{b}}
\newcommand{\bbc}{\mathbb{c}}
\newcommand{\bbd}{\mathbb{d}}
\newcommand{\bbe}{\mathbb{e}}
\newcommand{\bbf}{\mathbb{f}}
\newcommand{\bbg}{\mathbb{g}}
\newcommand{\bbh}{\mathbb{h}}
\newcommand{\bbi}{\mathbb{i}}