git clone ...
cd
// Build Container | |
docker build -t <container_name>:<version> . | |
// Run Image | |
docker run --rm <container_name>:<version> | |
// Build Container with Version | |
docker build -t <container_name>:<numeric version> . --build-arg VERSION=<numeric version> | |
// Add Tag to github, after push github action will deploy sourcecode to DockerHub |
/* | |
Serve is a very simple static file server in go | |
Usage: | |
-p="8100": port to serve on | |
-d=".": the directory of static files to host | |
Navigating to http://localhost:8100 will display the index.html or directory | |
listing file. | |
*/ | |
package main |
#include <stdio.h> | |
#include <iostream> | |
using namespace std; | |
class Electronic { | |
public: | |
// Properties | |
string id; | |
string model; |
// How to convert map[string]interface{} to Struct | |
// By AdaDeSions | |
package main | |
import ( | |
"log" | |
"encoding/json" | |
) |
// Setup | |
// Mac OS | |
brew install protobuf | |
// go modules | |
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest | |
// Proc cmd | |
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative helloworld/helloworld.proto |
// Commands | |
chromium-browser --start-fullscreen www.raspberrypi.org | |
chromium-browser --start-maximized www.raspberrypi.org | |
chromium-browser --kiosk www.raspberrypi.org | |
// Location to place commands | |
/etc/xdg/lxsession/LXDE-pi/autostart |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
[RequireComponent(typeof(CharacterController))] | |
[AddComponentMenu("Control Script/FPS Input")] | |
public class FPSInput : MonoBehaviour | |
{ | |
public float speed = 6.0f; | |
public float gravity = -9.8f; |