Skip to content

Instantly share code, notes, and snippets.

View rockfordlhotka's full-sized avatar

Rockford Lhotka rockfordlhotka

View GitHub Profile
@rockfordlhotka
rockfordlhotka / Index.cshtml
Last active January 23, 2023 09:54
Simple edit list of items in ASP.NET MVC
@* Goes in Views\PersonList *@
@using EditableListMvc.Models
@model IEnumerable<Person>
@{
ViewBag.Title = "Person List";
}
<h2>Person List</h2>
@rockfordlhotka
rockfordlhotka / BoolColorConverter.cs
Created June 11, 2018 02:27
XAML bool to color converter
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using Xamarin.Forms;
namespace ProjectTracker.Ui.Xamarin.Xaml
{
public class BoolColorConverter : IValueConverter
{
@rockfordlhotka
rockfordlhotka / Create.cshtml
Last active June 27, 2018 21:47
In-place edit of list in Razor Pages w/ CSLA
@page
@model WebApplication3.Pages.MyList.CreateModel
@{
ViewData["Title"] = "Create";
}
<h2>Create</h2>
<h4>MyItem</h4>
@rockfordlhotka
rockfordlhotka / .bashrc
Last active August 19, 2019 21:36
git bash aliases and more
#!/bin/bash
PATH=$PATH:"/c/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/MSBuild/Current/Bin"
alias az='winpty az.cmd'
alias minikube='winpty minikube.exe'
alias powershell='winpty powershell.exe'
alias ps1='winpty powershell.exe'
alias drme="docker.exe image ls | awk '/<none>/ { print $3}' | xargs docker.exe image rm -f"
alias cf='winpty cf.exe'
alias python='winpty python'
// Project requires the following packages:
// <PackageReference Include="Csla" Version="8.0.0" /> (or latest)
// <PackageReference Include="System.Data.SQLite" Version="1.0.118" />
using Csla;
using Csla.Configuration;
using Microsoft.Extensions.DependencyInjection;
using MyCode;
using System.Data.SQLite;