paulgorman.org

< ^ txt

Fri Jun 23 07:59:04 EDT 2017 Slept from eleven-thirty to seven-thirty. Woke briefly around six. High of eighty today. Thunderstorms likely, especially before noon. Work: - Order monitors for Jo Done. - Review invoices Done. - Work on Wilmar data No. https://snipeitapp.com/ Open Source Asset Managment https://www.freebsd.org/doc/handbook/network-iscsi.html Thirty minute walk at lunch. Cloudy but not raining yet. Saw a dragonfly. Home: - Work on algorithms in Go Done. - Work on Trouble Garden Done. // Naive bubble sort. package main import ( "fmt") func main() { nums := []int{10, 20, 15, 16, 3, 1, 5, 6, 6, 19, 4, 2, 17} fmt.Println(nums) sorted := false for sorted == false { sorted = true for i := 0; i < len(nums)-1; i++ { a := nums[i] b := nums[i+1] if a > b { sorted = false nums[i] = b nums[i+1] = a } fmt.Println(a, nums) } } } Is that a correct bubble sort? https://golang.org/doc/articles/wiki/ http://goinbigdata.com/example-of-using-templates-in-golang/ Breakfast: carrots, tomato, spinach, peanut butter toast, coffee Lunch: small flatbread Italian sandwich, coffee Dinner: Philly cheesesteak

< ^ txt