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
/* Import Google Font: Quicksand */ | |
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&display=swap'); | |
/* Base Layout | |
body { | |
font-family: 'Quicksand', 'Helvetica Neue', sans-serif; | |
background: url('https://images.unsplash.com/photo-1597362925519-b01b65ac3445?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80') no-repeat center center fixed; | |
background-size: cover; | |
background-attachment: fixed; | |
background-blend-mode: lighten; |
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 fullName = ""; | |
var firstLetter; | |
/* | |
fixName function definition should go here. | |
*/ | |
var fixName = function(name, nameType) { | |
/***** Begin repeated code block *****/ | |
var appendString; | |
firstLetter = name.substring(0, 1); | |
appendString = firstLetter.toUpperCase() + name.substring(1); |
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
<use namespace="System.Linq" /> | |
<viewdata model="SystemMonitoring.Features.DashboardViewModel" /> | |
<content:main> | |
<div class="container-fluid"> | |
<div class="sidebar"> | |
<div class="row" each="var c in Model.Clients"> | |
<br /> | |
<div class="client btn large primary" data-client-id="${this.Urls.UrlFor(new SystemMonitoring.Features.ClientDetails.ClientDetailsRequestModel { Id = c.Id })}">${c.Name}</div> | |
</div> | |
</div> |
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 Alert | |
{ | |
public String Id { get; set; } | |
public int Priority { get; set; } | |
public String Message { get; set; } | |
} |
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 SimpleProjectManagement.Models; | |
using SimpleProjectManagement.Repositories; | |
namespace SimpleProjectManagement.Features | |
{ | |
public class GetHandler | |
{ | |
private readonly IStoryListRepository _storyListRepository; |
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 SimpleProjectManagementRegistry : FubuRegistry | |
{ | |
public SimpleProjectManagementRegistry() | |
{ | |
// This line turns on the basic diagnostics and request tracing | |
IncludeDiagnostics(true); | |
Applies. | |
ToThisAssembly(); |
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
<use namespace="System.Linq" /> | |
<viewdata model="SimpleProjectManagement.Features.DashboardViewModel" /> | |
<content:main> | |
<div class="content"> | |
<div class="page-header"> | |
<h1> | |
Kanban Board! | |
</h1> | |
</div> | |
<div class="span8 offset4"> |
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 CsvPrinter : ICsvPrinter | |
{ | |
public void PrintCsv(IEnumerable<PropertyInfo> propertyInfos, IEnumerable<object> instances) | |
{ | |
var output = new StringBuilder(); | |
var properties = propertyInfos.ToArray(); | |
foreach (var instance in instances) | |
{ | |
if (output.Length == 0) |
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.Net; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Threading; | |
namespace SocketConnection | |
{ | |
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
public partial class Form1 : Form | |
{ | |
private List<Socket> clients = new List<Socket>(); | |
private Thread listening_thread; | |
private TcpListener listener; | |
public Form1() | |
{ | |
InitializeComponent(); |
NewerOlder