Skip to content

Instantly share code, notes, and snippets.

@gistlyn
gistlyn / links.md
Last active August 14, 2016 12:19
Friendly names for links to Gistlyn gists or collections
@gistlyn
gistlyn / index.md
Last active August 18, 2016 19:00
Test Collection Edit

This is a New Link

is a fast, simple, typed code-first ORM for .NET supporting most popular RDBMS's. For this interactive tour we'll use OrmLite's cross-platform In Memory SQLite database which can be referenced in Gistlyn by copying the packages.config NuGet generates after it installs it with:

> Install-Package ServiceStack.OrmLite.Sqlite.Mono

@gistlyn
gistlyn / index.md
Last active August 25, 2016 16:31
New Collection

Title

@gistlyn
gistlyn / index.md
Last active August 26, 2016 14:59
Creating Collections

Gistlyn Collections

In our mission to make Gistlyn an immensely useful and collaborative learning tool for exploring any .NET library, Gistlyn includes a streamlined UX for editing Collections making it easier than ever to create Live Docs which we believe is the best way to learn about a library, mixing documentation and providing a live development experience letting developers try out and explore what they've just learned without losing context by switching to their development environment and setting up new projects to match each code sample.

Gistlyn makes it easy to share C# snippets with colleagues or reporting an issue to library maintainers with just a URL or a saved Gist ID which anyone can view in a browser at gistlyn.com or on their

@gistlyn
gistlyn / index.md
Last active August 30, 2016 19:27
Snapshots

Gistlyn Snapshots

A nice feature we can provide in Gistlyn thanks to it being a light web-based IDE, is Snapshots.

Snapshots lets you save the entire client state of your current workspace (excluding your login info) and generates a url which you can use to either revert back to the snapshot yourself or send to someone else so they can load your entire workspace and start working from the point when the snapshot was taken.

Capturing a Snapshot

@gistlyn
gistlyn / main.cs
Last active February 13, 2017 04:45
OrmLite wildcard in Custom SQL
using ServiceStack;
using ServiceStack.Text;
using ServiceStack.OrmLite;
using ServiceStack.OrmLite.Sqlite;
using ServiceStack.DataAnnotations;
var dbFactory = new OrmLiteConnectionFactory(":memory:", SqliteDialect.Provider);
var db = dbFactory.Open(); // Open ADO.NET DB Connection
public class SomeTable
@gistlyn
gistlyn / main.cs
Last active June 24, 2017 00:18
PocoDynamo Todo Demo
using System;
using Amazon;
using Amazon.DynamoDBv2;
using ServiceStack;
using ServiceStack.Text;
using ServiceStack.Aws.DynamoDb;
using ServiceStack.DataAnnotations;
var awsDb = new AmazonDynamoDBClient("keyId","key",new AmazonDynamoDBConfig { ServiceURL="http://localhost:8000"});
var db = new PocoDynamo(awsDb);
@gistlyn
gistlyn / index.md
Last active June 27, 2017 06:31
Home

Gistlyn - Your C# Gist IDE in the Sky!

Gistlyn lets you create, run and share your executable C# Github Gists. Powered by Roslyn C# Scripting, all you need is a main.cs file, here's Hello World:

var name = "World";
var greeting = $"Hello, {name}!";
@gistlyn
gistlyn / index.md
Last active June 28, 2017 08:30
Gistlyn Downloads

Gistlyn on your Desktop

In addition to a running as an ASP.NET Web App, Gistlyn is also available as a self-hosting Winforms Desktop or cross-platform OSX/Linux/Windows Console App - packaged using the tooling in ServiceStack's React Desktop Apps VS.NET Template.

Running Gistlyn on your Desktop utilizes the full resources of your CPU for faster build and run times and as C# Gists are run locally they'll also be able to access your RDBMS and other Networked Servers and Services available from your local Intranet.

@gistlyn
gistlyn / quote.md
Created August 28, 2017 20:17
.NET Quotes

Razor is Awesome!

-- 2010