Skip to content

Instantly share code, notes, and snippets.

View Demo.csproj
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ServiceStack.Text" Version="5.*" />
</ItemGroup>
View chinook.sqlite|base64
This file has been truncated, but you can view the full file.
@gistlyn
gistlyn / app.settings
Last active Jul 6, 2020
Chinook SharpData UI
View app.settings
debug false
name Chinook SharpData UI
appName sharpdata
# Configure below. Supported dialects: sqlite, mysql, postgres, sqlserver
db.connections[chinook] { db:sqlite, connection:'chinook.sqlite' }
@gistlyn
gistlyn / _layout.html
Last active Jun 24, 2020
Demo Desktop App showcasing Win32 APIs
View _layout.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="/favicon.png" rel="icon">
<link rel="stylesheet" href="/lib/css/bootstrap/bootstrap.css">
<title>{{ title ?? 'Sharp Data' }}</title>
</head>
@gistlyn
gistlyn / Configure.AutoQuery.cs
Last active May 19, 2020
Configure AutoGen AutoCrud Services
View Configure.AutoQuery.cs
using ServiceStack;
namespace MyApp
{
public class ConfigureAutoQuery : IConfigureAppHost
{
public void Configure(IAppHost appHost)
{
appHost.Plugins.Add(new AutoQueryFeature {
MaxLimit = 1000,
@gistlyn
gistlyn / gen-dev.https.sh
Last active May 17, 2020
gen-https.sh bash & WSL scripts
View gen-dev.https.sh
#!/usr/bin/env bash
#Usage: bash gen-dev.https.sh <password>?
PASSWORD=grpc
if [ $# -ge 1 ]
then
PASSWORD=$1
fi
cat <<EOT >>dev.config
View protobuf-net\bcl.proto
// The types in here indicate how protobuf-net represents certain types when using protobuf-net specific
// library features. Note that it is not *required* to use any of these types, and cross-platform code
// should usually avoid them completely (ideally starting from a .proto schema)
// Some of these are ugly, sorry. The TimeSpan / DateTime dates here pre-date the introduction of Timestamp
// and Duration, and the "well known" types should be preferred when possible. Guids are particularly
// awkward - it turns out that there are multiple guid representations, and I accidentally used one that
// I can only call... "crazy-endian". Just make sure you check the order!
// It should not be necessary to use bcl.proto from code that uses protobuf-net
@gistlyn
gistlyn / app.settings
Last active Jul 5, 2020
Northwind SharpData
View app.settings
debug false
name Northwind SharpData UI
appName sharpdata
# Configure below. Supported dialects: sqlite, mysql, postgres, sqlserver
db.connections[northwind] { db:sqlite, connection: 'northwind.sqlite' }
View northwind.sqlite|base64
U1FMaXRlIGZvcm1hdCAzAAQAAQEAQCAgAAAAGwAAARAAAAARAAAABAAAAA8AAAAEAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbAC4oaQUAAAAEA+wAAAAAFAP7A/YD8QPsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALwQGF0MdAQBpbmRleHNxbGl0ZV9hdXRvaW5kZXhfQ3VzdG9tZXJfMUN1c3RvbWVyBQAAAASBIAIHFx0dAYITdGFibGVDYXRlZ29yeUNhdGVnb3J5A0NSRUFURSBUQUJMRSAiQ2F0ZWdvcnkiIAooCiAgIklkIiBJTlRFR0VSIFBSSU1BUlkgS0VZLCAKICAiQ2F0ZWdvcnlOYW1lIiBWQVJDSEFSKDgwMDApIE5VTEwsIAogICJEZXNjcmlwdGlvbiIgVkFSQ0hBUig4MDAwKSBOVUxMIAophQYBBxcdHQGJX3RhYmxlRW1wbG95ZWVFbXBsb3llZQJDUkVBVEUgVEFCTEUgIkVtcGxveWVlIiAKKAogICJJZCIgSU5URUdFUiBQUklNQVJZIEtFWSwgCiAgIkxhc3ROYW1lIiBWQVJDSEFSKDgwMDApIE5VTEwsIAogICJGaXJzdE5hbWUiIFZBUkNIQVIoODAwMCkgTlVMTCwgCiAgIlRpdGxlIiBWQVJDSEFSKDgwMDApIE5VTEwsIAogICJUaXRsZU9mQ291cnRlc3kiIFZBUkNIQVIoODAwMCkgTlVMTCwgCiAgIkJpcnRoRGF0ZSIgVkFSQ0hBUig4MDAwKSBOVUxMLCAKICAiSGlyZURhdGUiIFZBUkNIQVIoODAwMCkgTlVMTCwgCiAgIkFkZHJlc3MiIFZBUkNIQVIoODAwMCkgTlVMTCwgCiAgIkNpdHkiIFZBUkNIQVIoODAwMCkgTlVMTCwgCiAgIlJlZ2lvbiIgVkFSQ0hBUig4MDAwKSBOVUxMLCAK
@gistlyn
gistlyn / _init.ss
Last active Jul 5, 2020
SharpData UI
View _init.ss
{{
var AppSvgs = {
'action/home.svg': 'home',
'device/storage.svg': 'db',
'action/list.svg': 'table',
'navigation/first_page.svg': 'chevron-first',
'navigation/last_page.svg': 'chevron-last',
'navigation/expand_more.svg': 'chevron-down',
'navigation/chevron_left.svg': 'chevron-left',
'navigation/chevron_right.svg': 'chevron-right',
You can’t perform that action at this time.