Skip to content

Instantly share code, notes, and snippets.

View gucio321's full-sized avatar
🇵🇱

M.Sz. gucio321

🇵🇱
View GitHub Profile
@gucio321
gucio321 / get_system_version_number.go
Last active April 18, 2021 12:49 — forked from flxxyz/GetSystemVersionNumber.go
golang get system version number(windows, linux)
// Package osinfo allows to access operating system informations
// such as name (distribution name in case of linuxes), version and architecture
package osinfo
import (
"bytes"
"fmt"
"io/ioutil"
"log"
"os"
@gucio321
gucio321 / FlyCamera.cs
Created November 28, 2021 19:48 — forked from gunderson/FlyCamera.cs
Unity Script to give camera WASD + mouse control
using UnityEngine;
using System.Collections;
public class FlyCamera : MonoBehaviour {
/*
Writen by Windexglow 11-13-10. Use it, edit it, steal it I don't care.
Converted to C# 27-02-13 - no credit wanted.
Simple flycam I made, since I couldn't find any others made public.
Made simple to use (drag and drop, done) for regular keyboard layout
@gucio321
gucio321 / .gitattributes
Created December 27, 2021 11:18 — forked from nemotoo/.gitattributes
.gitattributes for Unity3D with git-lfs
## Unity ##
*.cs diff=csharp text
*.cginc text
*.shader text
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
@gucio321
gucio321 / main.go
Created February 1, 2023 19:43
Simple example of GO code running Python 3.11 (works at leas on Fedora 37)
package main
// #cgo pkg-config: python3-embed
// #include <Python.h>
import "C"
import (
"unsafe"
)