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.Linq; | |
namespace Funzies | |
{ | |
public class PassphraseGenerator | |
{ | |
private Random _random = new Random(DateTime.Now.Millisecond); | |
public string Generate(int wordsInPhrase) |
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 YourMvcApp.Core.Bundlers; | |
using Microsoft.Web.Optimization; | |
namespace YourMvcApp.Core.Resources | |
{ | |
public class BundleRegistration | |
{ |
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 fs = require("fs"), | |
path = require("path"), | |
cp = require("child_process"); | |
var conventionalTestDirectories = [".\\test", ".\\tests"], | |
conventionChain = function() {}; | |
function checkForDirectoryExists(directoryPath, nextDirectory, executeTests) { | |
console.log("Checking for tests in " + directoryPath); | |
path.exists(directoryPath, function(exists) { |
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
HTTP/1.1 500 Internal Server Error | |
Content-Type: text/html | |
Server: Microsoft-IIS/7.0 | |
X-Powered-By: ASP.NET | |
Date: Wed, 18 Jan 2012 20:21:08 GMT | |
Connection: close | |
Content-Length: 1208 | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> |
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 T Inflate<T>() where T : class | |
{ | |
var attr = typeof(T) | |
.GetCustomAttributes(true) | |
.OfType<XmlRootAttribute>() | |
.SingleOrDefault(); | |
string root; | |
// Use ElementName if it's provided, otherwise use name of the type |
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.ServiceModel; | |
using System.ServiceModel.Web; | |
using Nancy; | |
using Nancy.Hosting.Wcf; | |
using Nancy.Responses; | |
namespace NancyMaxJsonLengthSandbox | |
{ |
NewerOlder