Skip to content

Instantly share code, notes, and snippets.

@Lirimy
Lirimy / zeropad.ipynb
Last active March 8, 2023 08:02
ベクトルをゼロパディングする
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Lirimy
Lirimy / LICENSE
Created August 20, 2022 07:09
This license applies to all public gists https://gist.github.com/Lirimy
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
@Lirimy
Lirimy / generated.ipynb
Last active September 4, 2022 04:40
Tensor Ring Decomposition
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Lirimy
Lirimy / multilinear-product.ipynb
Created August 5, 2022 10:57
Multilinear Product
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Lirimy
Lirimy / animalname.jl
Created April 14, 2021 05:38
Force initialization
initname(name) = "<" * name * ">"
"""
struct AnimalName
String wrapper. Ensures that the string is initialized.
"""
struct AnimalName
str
AnimalName(name) = new(initname(name))
@Lirimy
Lirimy / custom.css
Last active March 29, 2021 10:01
font settings at Jupyter notebook
div.introspection,
div.input_prompt,
div.output_prompt,
div.CodeMirror,
div.CodeMirror pre,
div.output pre {
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Lirimy
Lirimy / eratosthenes_thread.ipynb
Created March 4, 2021 14:41
エラトステネスの篩 素直な実装でスレッド並列
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Lirimy
Lirimy / cartesian.ipynb
Created January 5, 2021 06:46
Cartesian index
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.