Skip to content

Instantly share code, notes, and snippets.

View Demo.csproj
<Project Sdk="Microsoft.NET.Sdk.Web">
<PackageReference Include="ServiceStack.Text" Version="5.*" />
View chinook.sqlite|base64
This file has been truncated, but you can view the full file.
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 / _layout.html
Last active Jun 24, 2020
Demo Desktop App showcasing Win32 APIs
View _layout.html
<!DOCTYPE html>
<html lang="en">
<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>
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 /
Last active May 17, 2020 bash & WSL scripts
#!/usr/bin/env bash
#Usage: bash <password>?
if [ $# -ge 1 ]
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 / 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
gistlyn /
Last active Jul 5, 2020
SharpData UI
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.