Skip to content

Instantly share code, notes, and snippets.

View NTaylorMullen's full-sized avatar

N. Taylor Mullen NTaylorMullen

View GitHub Profile
@NTaylorMullen
NTaylorMullen / gist:5274209
Last active December 15, 2015 14:28
default.html for MoveShapeHub (Broadcast version) REVISION
<!DOCTYPE html>
<html>
<head>
<title>SignalR MoveShape Demo</title>
<style>
#shape {
width: 100px;
height: 100px;
background-color: #FF0000;
@NTaylorMullen
NTaylorMullen / gist:5273063
Created March 29, 2013 19:35
default.html for MoveShapeHub (Broadcast version)
<!DOCTYPE html>
<html>
<head>
<title>SignalR MoveShape Demo</title>
<style>
#shape {
width: 100px;
height: 100px;
background-color: #FF0000;
@NTaylorMullen
NTaylorMullen / gist:5273060
Created March 29, 2013 19:35
MoveShapeHub.cs (Broadcast version)
using System;
using System.Threading;
using Microsoft.AspNet.SignalR;
namespace MoveShape
{
public class MoveShapeHub : Hub
{
// Broadcast 50 times per second
private static readonly TimeSpan BroadcastInterval = TimeSpan.FromMilliseconds(20);