Bil Simser bsimser

View gist:4612617
1 2 3 4 5 6 7
public class HelpDeskTicket
{
public CallerInfo CallerInfo { get; set; }
 
[Display(Name = "Comments")]
public string Comments { get; set; }
}
View program.cs
1 2 3 4 5 6 7 8 9 10
using System;
using SignalR.Client.Hubs;
 
namespace FANS.Demo
{
internal class Program
{
private static void Main(string[] args)
{
try
View generic_class.cs
1 2 3 4 5 6 7 8 9 10
// Trying to create a generic class using constraints. Something is wrong.
 
//
// I *think* I have the base class declared correctly?
//
public class Map<T, S> where T: Type where S: struct
{
}
 
//
View SentenceParser.cs
1 2 3 4 5 6 7 8 9
namespace System
{
public static class SentenceParser
{
public static string TrimSentence(this string @string, int length)
{
if (TheInputsAreNotValid(length, @string)) return AnEmptyString();
if (TheLengthIsLongerThanTheInputString(length, @string)) return TheOriginalString(@string);
if (TheNextCharacterIsEmpty(@string, length)) return TheNormallyParsedString(length, @string);
View viewmodels.cs
1 2 3 4 5 6 7 8
class MainViewModel : ViewModelBase
{
public string Duration {get; set;}
}
 
abstract class ViewModelBase
{
}
View redis.conf
1 2 3 4 5 6 7 8 9 10
# Redis configuration file for gemcutter
 
# Note on units: when memory size is needed, it is possible to specifiy
# it in the usual form of 1k 5GB 4M and so forth:
#
# 1k => 1000 bytes
# 1kb => 1024 bytes
# 1m => 1000000 bytes
# 1mb => 1024*1024 bytes
# 1g => 1000000000 bytes
View redis.sh
1 2 3 4 5 6 7 8 9 10
#! /bin/sh
### BEGIN INIT INFO
# Provides: redis-server
# Required-Start: $syslog
# Required-Stop: $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: redis-server - Persistent key-value db
Something went wrong with that request. Please try again.