Skip to content

Instantly share code, notes, and snippets.

@brv00
brv00 / Calculator.ipynb
Created June 18, 2021 12:30
Calculator.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brv00
brv00 / Y-combinator.ipynb
Last active April 24, 2021 07:08
Y-combinator.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brv00
brv00 / Untitled9.ipynb
Created January 28, 2021 05:49
Untitled9.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brv00
brv00 / Days between two dates.ipynb
Created January 25, 2021 07:39
Days between two dates.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brv00
brv00 / Untitled7.ipynb
Created October 29, 2020 13:12
Untitled7.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brv00
brv00 / Traffic jam.ipynb
Created May 12, 2020 07:47
Traffic jam.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brv00
brv00 / Continued fraction with unfold.ipynb
Last active April 7, 2020 10:19
Continued fraction with unfold.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
" SchemeのシンタックスハイライトにJSchemeのシンタックスハイライトを追加する。
" 数値リテラルはJSchemeに存在しない形式に対するハイライトの取り消しも行う。
if !exists("g:attach_jscheme_highlight")
finish
elseif !g:atach_jscheme_highlight
hi link schemeNumber Number
finish
endif
" JScheme の数値リテラルと一部の定数をハイライトする
using Primes
struct ExponentArray
maxexponents::Array{Integer}
end
function (incr!::ExponentArray)(x)
for d = 1:lastindex(x)
if x[d] ≥ incr!.maxexponents[d]
x[d] = zero(x[d])
@brv00
brv00 / C-curves.ipynb
Last active March 22, 2020 11:35
C-curves.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.