Skip to content

Instantly share code, notes, and snippets.

View Vytek's full-sized avatar

Enrico Speranza Vytek

View GitHub Profile
@Vytek
Vytek / toy-bleve-example.go
Created October 9, 2023 12:51 — forked from indraniel/toy-bleve-example.go
This is a toy search example using bleve. It also highlights how to retrieve the orignal input document(s) from the KV store.
package main
// mentioned in bleve google group
// https://groups.google.com/forum/#!topic/bleve/-5Q6W3oBizY
import (
"encoding/json"
"fmt"
"github.com/blevesearch/bleve"
"github.com/blevesearch/bleve/document"
@Vytek
Vytek / normcore-llm.md
Created August 30, 2023 14:30 — forked from veekaybee/normcore-llm.md
Normcore LLM Reads
@Vytek
Vytek / SimpleLogger.cs
Created July 30, 2019 13:49 — forked from heiswayi/SimpleLogger.cs
C# super simple logger class - Blog post: https://heiswayi.nrird.com/simple-logger-utility
/*
MIT License
Copyright (c) 2019 Heiswayi Nrird
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@Vytek
Vytek / examples.cs
Created July 16, 2019 10:49 — forked from northy179/examples.cs
Saving Scriptable Objects
/*Copyright 2018 Neil North
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHE
@Vytek
Vytek / EventManager.cs
Created February 21, 2019 09:04 — forked from bendangelo/EventManager.cs
Unity3D C# Event Manager
/*
* Copyright 2017 Ben D'Angelo
*
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation files (the "Software"), to deal in the Software
* without restriction, including without limitation the rights to use, copy, modify, merge,
* publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
* to whom the Software is furnished to do so, subject to the following conditions:
@Vytek
Vytek / TextureCombiner.cs
Created February 11, 2019 08:56 — forked from HAliss/TextureCombiner.cs
Texture combiner for Unity 3D
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEngine;
public class TextureCombiner : EditorWindow {
//Input textures
private Texture2D[] textures = new Texture2D[4];
@Vytek
Vytek / EyeController.cs
Created January 29, 2019 09:06 — forked from WhiteNoise/EyeController.cs
Basic script for more realistic eye movements. Eyes will snap to a set of targets.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EyeController : MonoBehaviour {
public GameObject eyeForward;
public GameObject[] eyes;
public GameObject mainTarget;
public GameObject[] otherTargets;
@Vytek
Vytek / TrackerPuppet.cs
Created January 29, 2019 09:06 — forked from WhiteNoise/TrackerPuppet.cs
Simple Trackers IK
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TrackerPuppet : MonoBehaviour {
[Header("Trackers")]
public GameObject controllerLeft;
public GameObject controllerRight;
public GameObject trackerLeft;
public GameObject trackerRight;
@Vytek
Vytek / SimpleENetSpanTestCase.cs
Created January 28, 2019 10:17 — forked from lazalong/SimpleENetSpanTestCase.cs
Simple Test Case to Send messages with ENet-Sharp & ENetStack
//
// Simple Test Case to Send messages with ENet-Sharp & ENetStack
// -------------------------------------------------------------
// steven 'lazalong' 2019
//
// If all goes smoothly you should see the followign log line:
// [Server] LogindData= OpCode= 4 passHash= 70 username= username
// UnityEngine.Debug:Log(Object)
// You will need the dll from the reference below.
// Reference:
@Vytek
Vytek / FXWaterPro.cs
Created October 12, 2017 09:53 — forked from miketucker/FXWaterPro.cs
Unity Water with VR support
// Upgrade NOTE: replaced '_Object2World' with 'unity_ObjectToWorld'
Shader "FX/Water" {
Properties {
_WaveScale ("Wave scale", Range (0.02,3.0)) = 0.063
_ReflDistort ("Reflection distort", Range (0,1.5)) = 0.44
_RefrDistort ("Refraction distort", Range (0,1.5)) = 0.40
_Brightness("Brightness", Range(0,1.0)) = 0.40
_RefrColor ("Refraction color", COLOR) = ( .34, .85, .92, 1)
[NoScaleOffset] _Fresnel ("Fresnel (A) ", 2D) = "gray" {}