Skip to content

Instantly share code, notes, and snippets.

Avatar
🤔
Thinking

Bagaev Dmitry bvdmitri

🤔
Thinking
View GitHub Profile
@bvdmitri
bvdmitri / throttled_slider.jl
Last active Apr 22, 2021
Throttled slider for Pluto.jl
View throttled_slider.jl
export ThrottledSlider
struct ThrottledSlider
range :: AbstractRange
default :: Number
throttle :: Number
show_value :: Bool
end
"""A Slider on the given `range`.
@bvdmitri
bvdmitri / throttle.sh
Created Feb 12, 2018
OSX CPU throttling script
View throttle.sh
#!/usr/local/bin/bash
function disable_throttling() {
echo "Disabling CPU throttling"
for pid in `pgrep cputhrottle`; do
kill "$pid"
done
}
if [[ "$UID" -ne 0 ]]; then