Skip to content

Instantly share code, notes, and snippets.

@mmc00
mmc00 / Dockerfile
Created November 23, 2022 15:45 — forked from pangyuteng/Dockerfile
docker miniconda ubuntu
#
# ref https://github.com/tebeka/pythonwise/blob/master/docker-miniconda/Dockerfile
#
# miniconda vers: http://repo.continuum.io/miniconda
# sample variations:
# Miniconda3-latest-Linux-armv7l.sh
# Miniconda3-latest-Linux-x86_64.sh
# Miniconda3-py38_4.10.3-Linux-x86_64.sh
# Miniconda3-py37_4.10.3-Linux-x86_64.sh
#
@mmc00
mmc00 / list.md
Created November 23, 2021 19:55 — forked from ih2502mk/list.md
Quantopian Lectures Saved
@mmc00
mmc00 / ConvertFrom-XLSB.ps1
Created May 27, 2021 21:54 — forked from daniel0x00/ConvertFrom-XLSB.ps1
PowerShell function to convert Excel .xlsb files to .csv
##
# Convert .xlsb to .csv - PowerShell function.
##
## USAGE:
# Open Windows PowerShell, change your paths on below one liner and paste it in Windows PowerShell:
# Set-ExecutionPolicy Bypass -Scope Process -Force; $username = $env:username; . "C:\Users\$username\Documents\ConvertFrom-XLSB.ps1"; Get-ChildItem "C:\Users\$username\Desktop\*xlsb' | Sort-Object LastWriteTime -Descending | Select-Object -First 1 -ExpandProperty Fullname | ConvertFrom-XLSB -OutputPath 'C:\Users\$username\Desktop\'
##
function ConvertFrom-XLSB {
param(
using Distributions, KernelDensity, QuadGK
function gini(x)
n = length(x)
xx = sort(x)
2*(sum(collect(1:n).*xx))/(n*sum(xx))-1
end
gini(d::Exponential) = 0.5
gini(d::Beta) = (2/d.α)*beta(d.α+d.β, d.α+d.β)/(beta(d.α,d.α)*beta(d.β, d.β))
@mmc00
mmc00 / README.md
Created August 16, 2019 16:28 — forked from mariotacke/README.md
Spotify AutoHotkey Script

Spotify AutoHotkey Script

This script makes use of the Numpad to control media players and volume on your system.

Usage

  • Install AutoHotkey
  • Right-click .ahk script
  • Compile Script
  • Start executable

Hotkeys