This file contains 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.Numerics; | |
using LifeSim.Support.Numerics; | |
namespace LifeSim.Procedural.Terrain; | |
public class CliffsNoiseValueGenerator : IValueGenerator | |
{ | |
public class Settings | |
{ |
This file contains 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 Veldrid; | |
namespace LifeSim.Engine.Rendering; | |
public class ShadowMapTexture : ITexture, IDisposable | |
{ | |
public uint Width { get; private set; } | |
public uint Height { get; private set; } |
This file contains 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.Numerics; | |
using System.Runtime.CompilerServices; | |
namespace LifeSim | |
{ | |
public struct Vector2Int : IEquatable<Vector2Int> | |
{ | |
public int X; | |
public int Y; |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<root> | |
<!-- | |
Microsoft ResX Schema | |
Version 2.0 | |
The primary goals of this format is to allow a simple XML format | |
that is mostly human readable. The generation and parsing of the | |
various data types are done through the TypeConverter classes |
This file contains 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
# Change to the project directory | |
cd /var/www/your-laravel-app | |
# Turn on maintenance mode | |
php artisan down || true | |
# Pull the latest changes from the git repository | |
git reset --hard | |
git clean -df | |
git pull origin master |
This file contains 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.Collections.Generic; | |
// Author: Javier "Ciberman" Mora | |
// License: MIT | |
// Enjoy! | |
public class WeightedRandom<T> | |
{ | |
private struct Value | |
{ | |
public T value; |
This file contains 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
<?php | |
namespace Tests\Feature; | |
use Tests\TestCase; | |
use Laravel\Nova\Http\Requests\NovaRequest; | |
use Laravel\Nova\Nova; | |
class NovaResourcesTest extends TestCase | |
{ |
This file contains 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
/** | |
This is a typical Laravel API JSON validation error. | |
{ | |
"message": "The given data was invalid.", | |
"errors": { | |
"name": [ | |
"The name field is required." | |
], |