I hereby claim:
- I am msarchet on github.
- I am msarchet (https://keybase.io/msarchet) on keybase.
- I have a public key whose fingerprint is DDD4 7FBD B89E 77D4 42C8 30DE A230 02A9 9BBF 2810
To claim this, I am signing this object:
const dgram = require('dgram') | |
const PortMaps = require('./portmaps.json') | |
this.server = dgram.createSocket('udp4') | |
this.listener = dgram.createSocket('udp4') | |
this.listener.on('message', (msg, rinfo) => { | |
let parts = `${msg}`.split("M") | |
let maps = parts[0].split("") |
//<html> | |
// <head> | |
// <title>Self Server</title> | |
// </head> | |
// <body> | |
// <h1>Explanation here: https://gist.github.com/msarchet/d630edffda1522fa8dc0ad238969fdc0</h1> | |
// <script type='text/javascript'> | |
// var process = { env: { server: false } } | |
if (process.env.server) { | |
const http = require('http') |
<UserControl | |
x:Class="DebugCheck.Views.Test" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:local="using:DebugCheck.Views" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
mc:Ignorable="d" | |
d:DesignHeight="300" | |
d:DesignWidth="400"> |
<div ng-app='app' ng-strict-di> | |
<ng-view></ng-view> | |
</div> |
(function () { | |
function homeController(logger) { | |
logger.log('thing', 123, { | |
123: 123 | |
}); | |
logger.warn('thing', 123, { | |
123: 123 | |
}); | |
logger.info('thing', 123, { | |
123: 123 |
I hereby claim:
To claim this, I am signing this object:
<div> | |
{{test}} | |
</div> |
using System; | |
namespace Sandbox | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
// Annoying to have to check Value all the time | |
Console.WriteLine(Person.LazyPerson.Value == Person.LazyPerson.Value); |
public class LayoutController : ApiController | |
{ | |
[HttpGet] | |
[Route("", Name = "Index")] | |
public async Task<HttpResponseMessage> LayoutHtml() | |
{ | |
var path = HttpContext.Current.IsDebuggingEnabled | |
? HttpContext.Current.Server.MapPath("~/App/Views/Index.html") | |
: HttpContext.Current.Server.MapPath("~/App/View/Index_Release.html"); | |
var file = await File.OpenText(path).ReadToEndAsync(); |
namespace Services.Core.HttpActionResult | |
{ | |
using System.Web.Http; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
public abstract class BaseActionResult : IHttpActionResult | |
{ | |
protected readonly HttpRequestMessage request; | |
protected readonly Task task; |