This is a work in progress but is an attemp to model the domain of a typical MUD in psuedo-code
- name (string)
using AutoMapper; | |
using System.Collections.Generic; | |
namespace AutoMapperSandbox | |
{ | |
public class SingleObjectToListConverter<T> : ITypeConverter<T, List<T>> | |
{ | |
public List<T> Convert(T source, List<T> destination, ResolutionContext context) | |
{ | |
return new List<T>() { source }; |
<!DOCTYPE html> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<title>Options With Dependencies</title> | |
</head> | |
<body> | |
<select id="select1" name="select1" title="Select 1"> | |
<option value="">-- select an option --</option> |
public static string StripHtml(this string value) | |
{ | |
HtmlDocument htmlDoc = new HtmlDocument(); | |
htmlDoc.LoadHtml(value); | |
if (htmlDoc == null) | |
return value; | |
StringBuilder sanitizedString = new StringBuilder(); |
# Credit for this: Nicholas Swift | |
# as found at https://medium.com/@nicholas.w.swift/easy-a-star-pathfinding-7e6689c7f7b2 | |
from warnings import warn | |
import heapq | |
class Node: | |
""" | |
A node class for A* Pathfinding | |
""" |
public void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddControllers(); | |
var queueTopic = "topic name here"; | |
var sendQueueConnectionString = "Send EndPoint Connection String Here"; | |
var receiveQueueConnectionString = "Receive EndPoint COnnection String Here"; | |
// My intent is to have this ASPNET Core API publish and also be a consumer |
#include "wren.h" | |
#include <stdio.h> | |
#include <string.h> | |
void writeFn(WrenVM* vm, const char* text) { | |
printf("%s", text); | |
} | |
void fooBar(WrenVM* vm) { | |
WrenType type = wrenGetSlotType(vm, 1); |
[Fact] | |
public async Task Get_GetDefaultEndPoint_ReturnsOk() | |
{ | |
// Arrange | |
var harness = new InMemoryTestHarness(); | |
var consumerHarness = harness.Consumer<MyMessageConsumer>(); | |
await harness.Start(); | |
try | |
{ |
services.AddMassTransit(x => | |
{ | |
x.AddConsumer<MyMessageConsumer>(); | |
x.AddBus(provider => Bus.Factory.CreateUsingInMemory(cfg => | |
{ | |
cfg.UseHealthCheck(provider); | |
cfg.ReceiveEndpoint("mymessage-endpoint", ep => | |
{ | |
ep.ConfigureConsumer<MyMessageConsumer>(provider); | |
}); |
const util = require("util"); | |
const search = require("youtube-search"); | |
const _ = require("lodash"); | |
var xhr = require("xhr"); | |
if (!xhr.open) xhr = require("request"); | |
var opts = { | |
maxResults: 1, | |
key: "<YOUR_KEY_HERE>" | |
}; |