- Create repo on GitHub where you'll put your files.
- Use jsDeliver or statically to get your assets.
Here is repo I'm using:
https://github.com/jcubic/static
And links to files look like this:
Here is repo I'm using:
https://github.com/jcubic/static
And links to files look like this:
// <PackageReference Include="K4os.Compression.LZ4.Streams" Version="1.3.5" /> | |
public abstract class BaseNotifyPropertyChanged: INotifyPropertyChanged | |
{ | |
#region Data Binding | |
public event PropertyChangedEventHandler PropertyChanged; | |
public virtual void NotifyPropertyChanged([CallerMemberName] string propertyName = null) | |
=> PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); | |
protected bool SetField<TType>(ref TType field, TType value, [CallerMemberName] string propertyName = null) | |
{ |
struct Wave | |
{ | |
Vec2 dir; | |
float amplitude; | |
float waveLength; | |
}; | |
struct ImmutableCB | |
{ | |
float waveSteepness; |
// Clone of https://gist.github.com/Flafla2/1a0b9ebef678bbce3215 with more dimensions and seed generation. | |
public class PerlinGen | |
{ | |
private readonly int[] p; // Randomly shuffled array of values from 0 to 255. | |
// Values are repeated up to size of 512 to avoid using modulo operator. | |
public PerlinGen(int seed) | |
{ | |
// Generate p. |
Blazor is NOT procedural. And you cannot define "functional components" - so all the shitty little layouts need to become a seperate component, which quickly makes project messy because each component needs some naming.
Blazor is entirely FUNCTIONAL despite what it looks like, and things like the below can happen that blew your mind:
// The code below depends on Blazorized for <Row> and <Column> definitions
// ProductGalerry.blazor
using System; | |
using System.Drawing; | |
using System.Runtime.InteropServices; | |
using System.Windows; // Or use whatever point class you like for the implicit cast operator | |
namespace CursorPos | |
{ | |
class Program | |
{ | |
/// <summary> |
#!/usr/bin/env python | |
# | |
# Hi There! | |
# | |
# You may be wondering what this giant blob of binary data here is, you might | |
# even be worried that we're up to something nefarious (good for you for being | |
# paranoid!). This is a base85 encoding of a zip file, this zip file contains | |
# an entire copy of pip (version 22.3.1). | |
# | |
# Pip is a thing that installs packages, pip itself is a package that someone |
/*Dependency: Csv by Steven Hansen*/ | |
using System.Drawing; | |
using Console = Colorful.Console; | |
namespace Utility | |
{ | |
public class Train : IDisposable | |
{ | |
#region Construction |
/*Dependency: Csv by Steven Hansen*/ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using System.Threading.Tasks; | |
namespace Utility |
public string ReadResource(string name) | |
{ | |
// Determine path | |
var assembly = Assembly.GetExecutingAssembly(); | |
string resourcePath = name; | |
// Format: "{Namespace}.{Folder}.{filename}.{Extension}" | |
if (!name.StartsWith(nameof(YourAssemblyName))) | |
{ | |
resourcePath = assembly.GetManifestResourceNames() | |
.Single(str => str.EndsWith(name)); |