Skip to content

Instantly share code, notes, and snippets.

View croese's full-sized avatar

Christian Roese croese

View GitHub Profile
import random
import math
class RandomPointGenerator:
def generate(self, num_points, max_x, max_y, min_allowable_distance):
r = self.random_points(max_x, max_y)
found_points = set()
for i in range(num_points):
cx, cy = next(r)
@croese
croese / test-go-exec-main.go
Last active December 23, 2019 16:40
Test go code with new processes and pipes
package main
import (
"log"
"os"
"os/exec"
)
func main() {
read, write, _ := os.Pipe()