Take it on Faith - Natalie Maines
A New Life - Jim James
The Mother we Share - CHVRCHES
Forever Young - Youngblood Hawke
Closer - Tegan and Sara
These Times - Safety Suit
City of Angels - Thrity Seconds to Mars
Strawberry Bubblegum - Justin Timberlake
Riptide - Vance Joy
If Only - Dave Matthews Band
View WinformsAppHost.cs
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; | |
using CefSharp; | |
using ServiceStack; | |
using ServiceStack.Text; |
View starbucks-tracks.md
View OrmLiteLeftJoin.cs
using System; | |
using ServiceStack.OrmLite; | |
using ServiceStack.Text; | |
namespace ConsoleApplication2 | |
{ | |
public class TableA | |
{ | |
public int Id { get; set; } | |
public string Name { get; set; } |
View AssigningRoles.cs
// Call Services as a Super User to pass RequiredRole restrictions | |
using (var appHost = new BasicAppHost | |
{ | |
ConfigureAppHost = host => | |
{ | |
host.Config.AdminAuthSecret = "allowAdmin"; | |
}, | |
... | |
}.Init()) |
View swift-crash.swift
//Crashes compiler | |
func toAny(x:AnyObject) -> Any { | |
return x as Any | |
} | |
//SegFaults when Run | |
reflect(Int) | |
reflect(Int.self) | |
reflect(String) | |
//... and friends |
View TestJoinSupportForORMLite.sql
--drop table [OrderDetail] | |
--drop table [Order] | |
--drop table [Address] | |
--drop table [ProUser] | |
DROP TABLE [dbo].[Address] | |
GO | |
DROP TABLE [dbo].[Order] | |
GO |
View OrmLiteExtensions.cs
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Linq; | |
using System.Linq.Expressions; | |
namespace ServiceStack.OrmLite | |
{ | |
public static class OrmLiteExtensions | |
{ |
View gist:744701
public static IPAddress GetIpAddress(System.ServiceModel.OperationContext context) | |
{ | |
var prop = context.IncomingMessageProperties; | |
if (context.IncomingMessageProperties.ContainsKey(System.ServiceModel.Channels.RemoteEndpointMessageProperty.Name)) | |
{ | |
var endpoint = prop[System.ServiceModel.Channels.RemoteEndpointMessageProperty.Name] | |
as System.ServiceModel.Channels.RemoteEndpointMessageProperty; | |
if (endpoint != null) | |
{ | |
return IPAddress.Parse(endpoint.Address); |
View gist:750202
var createTableWithCaption = function (id, caption, tableStyle) | |
{ | |
var sb = "<div class='sd-info'><table id='" + id + "' class='itfa_sectionbody' style='" + tableStyle + "'>"; | |
if (caption) sb += "<caption>" + caption + "</caption>"; | |
return sb; | |
} | |
var createTableFn = function (id, fieldNames, caption, tableStyle, tfoot) | |
{ |
View AsyncServiceClientTests
[TestFixture] | |
public class AsyncServiceClientTests | |
{ | |
private const string ListeningOn = "http://localhost:82/"; | |
ExampleAppHostHttpListener appHost; | |
[TestFixtureSetUp] | |
public void OnTestFixtureSetUp() | |
{ |
OlderNewer