Skip to content

Instantly share code, notes, and snippets.

View kamlekar's full-sized avatar
💭
Self refactoring

Venkateshwar kamlekar

💭
Self refactoring
View GitHub Profile
@kamlekar
kamlekar / file.js
Created December 7, 2012 10:15
Chat Application (work in progress) file.js
//Added References
/*
* jquery-1.6.4.min.js
* jquery.signalR-1.0.0-alpha2.min.js
*/
var showChatName = new Boolean();
showChatName = true;
var chatUsername = window.prompt("Enter Username:", "");
@kamlekar
kamlekar / User.cs
Created December 7, 2012 10:13
Chat Application (work in progress) User.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.AspNet.SignalR.Hubs;
namespace serverNameExample
{
public class User
{
@kamlekar
kamlekar / default.aspx
Created December 7, 2012 10:12
Chat Application (work in progress) default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="serverNameExample._default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="Scripts/jquery-1.8.2.js" type="text/javascript"></script>
<script src="Scripts/jquery.signalR-1.0.0-alpha2.min.js" type="text/javascript"></script>
<!-- If this is an MVC project then use the following -->
<!-- <script src="~/signalr/hubs" type="text/javascript"></script> -->
@kamlekar
kamlekar / Chat.cs
Created December 7, 2012 10:11
Chat Application (work in progress) Chat.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.AspNet.SignalR.Hubs;
using System.Threading.Tasks;
using System.Collections.Concurrent;
namespace serverNameExample
{
@kamlekar
kamlekar / Chat.cs
Created December 5, 2012 12:26
These are my files related to SignalR chat application which I have created by going through the Quick Hub documentation tutorial.(work still in progress)
/*
* Please add your Valuable comments in between the codes where there is a need of modification
* So that I can have a clear goal.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;