Skip to content

Instantly share code, notes, and snippets.

View aplavin's full-sized avatar

Alexander Plavin aplavin

View GitHub Profile
@aplavin
aplavin / stats.ipynb
Last active August 29, 2015 14:04
Статистика набора 2011, МФТИ, ФУПМ
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aplavin
aplavin / mywidgets.py
Created August 20, 2016 15:51
ipywidgets extensions
import ipywidgets as iw
import traitlets
class SelectionSliderBtns(iw.Box):
description = traitlets.Unicode()
value = traitlets.Any()
options = traitlets.Union([traitlets.List(), traitlets.Dict()])
def __init__(self, **kwargs):
@aplavin
aplavin / startup.jl
Created January 22, 2025 02:50
startup.jl with BasicAutoloads for many useful packages
insert!(LOAD_PATH, 2, mktempdir())
if isinteractive()
import BasicAutoloads
BasicAutoloads.register_autoloads([
# dev tools:
["@btime", "@benchmark"] => :(using BenchmarkTools),
["@b", "@be"] => :(using Chairmarks),
["@descend", "@descend_code_typed", "@descend_code_warntype"] => :(using Cthulhu),