Skip to content

Instantly share code, notes, and snippets.

View ryanfrance's full-sized avatar

Ryan France ryanfrance

View GitHub Profile
@ryanfrance
ryanfrance / main.go
Created May 23, 2024 16:29
Integer interpretation for bluescale picture
package main
import (
"golang.org/x/tour/pic"
)
func Pic(dx, dy int) [][]uint8 {
picture := make([][]uint8, dy)
for y := 0; y < dy; y++ {
@ryanfrance
ryanfrance / main.go
Last active May 23, 2024 16:29
Newton's Method
package main
import (
"fmt"
"math"
)
func Sqrt(x float64) float64 {
z := 3.0
threshold := 1e-10 // Define a small threshold value

Keybase proof

I hereby claim:

To claim this, I am signing this object: