Skip to content

Instantly share code, notes, and snippets.

💭
just being there

Oliver Leitner OliverLeitner

💭
just being there
Block or report user

Report or block OliverLeitner

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View AspNetCoreChatRoom.csproj
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.AspNetCore.WebSockets" Version="2.1.1" />
</ItemGroup>
@OliverLeitner
OliverLeitner / SocketHandler.cs
Created Jul 10, 2018
dotnet-core-websockets-server
View SocketHandler.cs
using System;
using System.Net.WebSockets;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Extensions;
using Microsoft.AspNetCore.WebSockets;
namespace wsweb.handlers.sockethandler
@OliverLeitner
OliverLeitner / SpecRunner.html
Last active Jul 5, 2018
simple jasmine sample
View SpecRunner.html
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Jasmine Spec Runner v3.0.x</title>
<link rel="shortcut icon" type="image/png" href="/node_modules/jasmine-core/images/jasmine_favicon.png">
<link rel="stylesheet" type="text/css" href="/node_modules/jasmine-core/lib/jasmine-core/jasmine.css">
<script type="text/javascript" src="/node_modules/jasmine-core/lib/jasmine-core/jasmine.js"></script>
<script type="text/javascript" src="/node_modules/jasmine-core/lib/jasmine-core/jasmine-html.js"></script>
<script type="text/javascript" src="/node_modules/jasmine-core/lib/jasmine-core/boot.js"></script>
@OliverLeitner
OliverLeitner / index.html
Last active Jul 6, 2018
native web components
View index.html
<!doctype html>
<html>
<head>
<title>native web components</title>
<meta charset="utf-8">
<!-- polyfill needed for firefox and probably internet explorer as well... -->
<script src="/node_modules/webcomponents.js/webcomponents.js"></script>
<!-- the actual component, looks a helllotta like ng, good to finally get where theyre coming from -->
<link rel="import" href="template.html">
<link rel="import" href="template2.html">
@OliverLeitner
OliverLeitner / data.json
Created Jul 3, 2018
websockets with ws and less module dependencies
View data.json
{
"author": "Jalal.Hejazi",
"info": "Response header info",
"Content-Type":"text/json",
"X-Powered-By":"nodejs",
"Access-Control-Allow-Origin":"*",
"next":"REST The WEB"
}
@OliverLeitner
OliverLeitner / data.json
Created Jul 3, 2018
websockets playaround
View data.json
{
"author": "Jalal.Hejazi",
"info": "Response header info",
"Content-Type":"text/json",
"X-Powered-By":"nodejs",
"Access-Control-Allow-Origin":"*",
"next":"REST The WEB"
}
@OliverLeitner
OliverLeitner / data.json
Last active Jul 3, 2018
webworker simple ping
View data.json
{
"author": "Jalal.Hejazi",
"info": "Response header info",
"Content-Type":"text/json",
"X-Powered-By":"nodejs",
"Access-Control-Allow-Origin":"*",
"next":"REST The WEB"
}
You can’t perform that action at this time.