This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using NRack.Adapters; | |
namespace NRack.Example.AspNet | |
{ | |
public class EnvironmentOutput : ICallable, IIterable | |
{ | |
private readonly dynamic _application; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using NRack.Helpers; | |
namespace Tabasco.Example | |
{ | |
[Resource("/")] | |
public class Main | |
{ | |
const string HtmlSkeleton = @"<html> | |
<head><title>Super Tabasco Example</title></head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Diagnostics; | |
namespace StackTraceSharing | |
{ | |
public class Program |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using NRack.Helpers; | |
namespace Tabasco.Example.AspNet | |
{ | |
public class App : TabascoBase | |
{ | |
[Get] | |
public IView Index() | |
{ | |
return new Spark(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using NRack.Auth; | |
using NRack.Configuration; | |
using NRack.Helpers; | |
namespace NRack.Example.AspNet | |
{ | |
public class Config : ConfigBase | |
{ | |
public override void Start() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override void Start() | |
{ | |
var context = IronJsBootstrap.Initialize(); | |
WireUpJavaScriptConfigurationObject(context); | |
var source = GetSourceString(); | |
context.Execute(@"(function () { | |
var config = new Config(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FoodRating | |
{ | |
public int? Score { get; set; } // YAY, let's make it Nullable! Is this even valid? | |
} | |
public class ChickenReview | |
{ | |
private readonly FoodRating _rating; | |
public ChickenReview(FoodRating rating) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Text; | |
namespace NodeIPC | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var input = Console.OpenStandardInput(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Stream = require('stream'); | |
var util = require('util'); | |
var Streamy = function() { | |
Stream.call(this); | |
this.readable = true; | |
this.writable = true; | |
}; | |
util.inherits(Streamy, Stream); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_links": { | |
"self": { "href": "/orders" }, | |
"next": { "href": "/orders?page=2" }, | |
"find": { "href": "/orders{?id}", "templated": true } | |
}, | |
"_embedded": { | |
"orders": [{ | |
"_links": { | |
"self": { "href": "/orders/123" }, |
OlderNewer