This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"advent/utils" | |
"fmt" | |
"math" | |
"sort" | |
"strconv" | |
"strings" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"math" | |
"os" | |
"regexp" | |
"slices" | |
"strings" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"math/rand" | |
"net/http" | |
"strings" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Build a statically linked binary | |
FROM golang:alpine as builder | |
# Install git to install dependencies (skip if vendored) | |
RUN apk add --update --no-cache git | |
# Copy source code to working directory | |
COPY . /src | |
WORKDIR /src | |
# Add some env vars for the build process | |
ENV CGO_ENABLED=0 | |
ENV GOOS=linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
# Define an InfluxDB service | |
influxdb: | |
image: influxdb:latest | |
volumes: | |
# Mount for influxdb data directory | |
- ./data/influxdb:/var/lib/influxdb | |
# Mount for influxdb configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# start: docker-compose up | |
# tear down: docker-compose down | |
version: '3' | |
services: | |
server: | |
build: | |
context: . | |
ports: | |
- "8010:8010" | |
influxdb: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# scene.txt | |
# image_size: width height (default 320x240) | |
image_size 640 640 | |
# trace depth: int (default 3) | |
depth 5 | |
# oversampling: int (default 1 = no oversampling) | |
oversampling 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Proyecto 2 | |
# Ray Tracer Avanzado | |
# Guillermo Estrada | |
# Rene Garcia | |
# Edgar López | |
# Luis Ledezma | |
# Daniel Castillo | |
# | |
# Constantes utilizadas dentro del programa | |
MAX_DISTANCE = 9999999999 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Proyecto 1 | |
# Ray tracer básico | |
# Guillermo Estrada | |
# Rene Garcia | |
# Edgar López | |
# Luis Ledezma | |
# Daniel Castillo | |
# | |
# Constantes utilizadas dentro del programa | |
MAX_DISTANCE = 9999999999 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"bytes" | |
"encoding/binary" | |
"flag" | |
"fmt" | |
"github.com/spf13/nitro" | |
"io" |
NewerOlder