Skip to content

Instantly share code, notes, and snippets.

View xyberviri's full-sized avatar

James Velasquez xyberviri

View GitHub Profile
@Randolio
Randolio / houses.lua
Created September 5, 2024 13:47
700+ house location coords with labels.
Houses = {
{label = 'Mirror Park Blvd 1', coords = vec3(1228.86, -725.41, 60.80)},
{label = 'Mirror Park Blvd 2', coords = vec3(1222.79, -697.04, 60.80)},
{label = 'Mirror Park Blvd 3', coords = vec3(1221.39, -668.83, 63.49)},
{label = 'Mirror Park Blvd 4', coords = vec3(1206.88, -620.22, 66.44)},
{label = 'Mirror Park Blvd 5', coords = vec3(1203.69, -598.96, 68.06)},
{label = 'Mirror Park Blvd 6', coords = vec3(1200.84, -575.72, 69.14)},
{label = 'Mirror Park Blvd 7', coords = vec3(1204.48, -557.80, 69.62)},
{label = 'East Mirror Dr 1', coords = vec3(1241.99, -565.69, 69.66)},
{label = 'East Mirror Dr 2', coords = vec3(1241.38, -601.70, 69.43)},
@saturngamesss
saturngamesss / Pixelation.cs
Last active May 15, 2020 17:28
Simple pixel camera code for Unity Engine.
//FROM PROJECT ROROPE || REAL GAMES STUDIO
//************************************************
//https://realgamesss.weebly.com
//https://gamejolt.com/@RealGamesss
//https://realgamesss.newgrounds.com/
//https://real-games.itch.io/
//https://youtube.com/channel/UC_Adg-mo-IPg6uLacuQCZCQ
//************************************************
using UnityEngine;
#loader gregtech
import mods.gregtech.material.MaterialRegistry;
import crafttweaker.enchantments.IEnchantmentDefinition;
print("-------------GT Materials Start------------");
#Reference
/*
MaterialRegistry.createFluidMaterial(
int metaItemSubId, String name, int color, String iconSet, @Optional MaterialStack[] materialComponents);
@HAliss
HAliss / TextureCombiner.cs
Last active January 8, 2023 21:08
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];
@roydejong
roydejong / progrids-install.md
Last active September 12, 2024 10:35
Installing ProGrids v3 in Unity 2018.3

The problem

ProGrids seems to have disappeared from the Unity Package Manager as of Unity 2018.3.

It is possible to install ProGrids v2 via the Asset Store, but it's an old and incompatible version.

The solution (new)

Per Sayama3:

In 2021, you still can use it but it's different :

  • Go to the Package Manager
@Mahelita
Mahelita / FlyCamera.cs
Last active June 22, 2023 20:28 — forked from McFunkypants/FlyCamera.cs
New Script FlyCamera add to any camera obj: instant unity editor style wasd rightclick debug cam
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.
Extended by Mahelita 08-01-18.
@thanasishadow
thanasishadow / pack making mods
Last active January 2, 2025 17:52
A list of mods which are useful for modpack makers
Mine/Craft Tweaker - Create/Change crafting table or furnace recipes.
Content Tweaker - Create new blocks, items, liquids and much more.
Mod Tweaker - Adds mod compatibility to Craft Tweaker.
Game Stages (And addons) - Prevent players from accessing dimensions/items/mobs/materials/waila information before they reach a certain point.
Gendustry - Create custom bees, combs, bee mutations and squeezer/carpenter recipes.
Block Drop Tweaker - Change what certain blocks drop.
Custom Stuff - Create custom items, blocks, recipes, world gen and oredicts.
Custom Things - Create custom items/blocks.
Modular Machinery - Create custom machines.
Artisan Worktables - Adds many variations of the crafting table and many more crafting tools.
@OpBug
OpBug / HashPuzzle.cs
Last active August 28, 2020 05:01
C# proof-of-work implementation inspired by Hashcash to deter denial of service attacks and other service abuses such as spam.
using System;
using System.Security.Cryptography;
/// <summary>
/// Computes and verifies proof-of-work challenges inspired by Hashcash to deter denial of service attacks and other service abuses such as spam.
/// </summary>
public sealed class HashPuzzle
{
#region " Properties "
@gunderson
gunderson / FlyCamera.cs
Last active February 10, 2025 17:51
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
@BravoTango86
BravoTango86 / Base32.cs
Created September 20, 2016 22:03
Base32 Encoding and Decoding in C#
/*
* Derived from https://github.com/google/google-authenticator-android/blob/master/AuthenticatorApp/src/main/java/com/google/android/apps/authenticator/Base32String.java
*
* Copyright (C) 2016 BravoTango86
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0