I hereby claim:
- I am stephenkirk on github.
- I am dopamin (https://keybase.io/dopamin) on keybase.
- I have a public key ASDsogs_d6Ir5D6Plylpm8-F7kG5cQGoVcw5kpzG2z83fwo
To claim this, I am signing this object:
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using Microsoft.Extensions.Logging; | |
| using Microsoft.Extensions.Options; | |
| using System.ComponentModel.DataAnnotations; | |
| namespace Balatro.Identity.Generation.Services | |
| { |
| public class Result | |
| { | |
| public ICollection<string> Messages { get; set; } = new List<string>(); | |
| public ResultStatus Status = ResultStatus.Ok; | |
| public static Result<bool> Validate(bool condition, string error) | |
| => condition | |
| ? new Result<bool>() | |
| : new Result<bool> {Status = ResultStatus.Invalid, Messages = new List<string> {error}}; | |
| } |
I hereby claim:
To claim this, I am signing this object:
| public static class DataTableExtensions | |
| { | |
| public static DataTable ToDataTable<T>(this IEnumerable<T> data) | |
| { | |
| var properties = TypeDescriptor.GetProperties(typeof(T)); | |
| var table = new DataTable(); | |
| foreach (PropertyDescriptor prop in properties) | |
| { | |
| var name = prop.Name; |
| private static void CreateEnums(string path) | |
| { | |
| var js = ""; | |
| js += Enum<CarStatus>.GetExportableJs(); | |
| js += Enum<CarPurchaseType>.GetExportableJs(); | |
| js += Enum<UserRoles>.GetExportableJs(); | |
| js += Enum<CarValuationStatus>.GetExportableJs(); |
| public static string GetExportableJs() | |
| { | |
| var representation = new Dictionary<string, object>(); | |
| var list = AsList; | |
| foreach (var item in list) | |
| { | |
| var @enum = item as Enum; | |
| if (@enum == null) continue; |
| #!/usr/bin/ruby | |
| # Create display override file to force Mac OS X to use RGB mode for Display | |
| # see http://embdev.net/topic/284710 | |
| require 'base64' | |
| data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
| edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
| vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |