edit at
This file contains hidden or 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" | |
"github.com/The-Tensox/erutan/cfg" | |
erutan "github.com/The-Tensox/erutan/protobuf" | |
"golang.org/x/net/context" | |
"google.golang.org/grpc" | |
"google.golang.org/grpc/credentials" | |
"io" |
This file contains hidden or 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
FROM debian:9 | |
# Wget, ps, java | |
RUN apt-get update && apt-get install -y wget procps default-jdk | |
ENV KAFKA_VERSION=1.1.1 | |
ENV KAFKA_DIRECTORY=kafka_2.12-${KAFKA_VERSION} | |
# Current version | |
RUN wget https://archive.apache.org/dist/kafka/${KAFKA_VERSION}/${KAFKA_DIRECTORY}.tgz \ |
This file contains hidden or 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
UNITY_PROJECT_PATH ?= $(HOME)/my/path/to/unity/project | |
NS ?= my_game_name | |
VERSION ?= 1.0.0 | |
EDITOR_PATH ?= $(HOME)/my/path/to/unity/project | |
CUSTOM_BUILD_SCRIPT ?= MyNameSpace.MyClass.MyFunction | |
.PHONY: help build run | |
help: | |
@echo '' | |
@echo 'Usage: make [TARGET]' |
This file contains hidden or 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 ( | |
"errors" | |
"math/rand" | |
) | |
// Copy pasta https://gist.github.com/awilki01/83b65ad852a0ab30192af07cda3d7c0b | |
// Originally was Java, then C# then Go ... have fun | |
////size of grid to generate, note this must be a |
This file contains hidden or 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
public static class Spatial | |
{ | |
/// <summary> | |
/// Return position above ground relatively from the prefab size | |
/// Global position | |
/// </summary> | |
/// <param name="position"></param> | |
/// <param name="prefabHeight">Prefab height needed in order to place well on top of ground</param> | |
/// <param name="transform">Transform parent</param> | |
/// <param name="layerMask">Layers to ignore</param> |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
public class Value | |
{ | |
public double Data { get; set; } | |
public double Gradient { get; set; } | |
private Action _backward; | |
private readonly List<Value> _prev; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.