Skip to content

Instantly share code, notes, and snippets.

View ksamson's full-sized avatar
🎯
Focusing

kevin ksamson

🎯
Focusing
View GitHub Profile
@ksamson
ksamson / join.ps1
Last active November 4, 2020 07:15 — forked from jehugaleahsa/join.ps1
PowerShell Script to Split Large Files
function join($path)
{
$files = Get-ChildItem -Path "$path.*.part" | Sort-Object -Property @{Expression={
$shortName = [System.IO.Path]::GetFileNameWithoutExtension($_.Name)
$extension = [System.IO.Path]::GetExtension($shortName)
if ($extension -ne $null -and $extension -ne '')
{
$extension = $extension.Substring(1)
}
[System.Convert]::ToInt32($extension)
import math
import scipy.stats as st
def ci_lower_bound(pos, n, confidence=None, z=None):
if n == 0:
return 0
if z is None:
z = st.norm.ppf(1 - (1 - confidence) / 2)
phat = 1.0 * pos / n
@ksamson
ksamson / ID3.go
Last active July 3, 2018 06:17
Implementation of ID3 algorithm in Go
package main
import (
"bufio"
"fmt"
"io"
"log"
"os"
"strings"
"math"