Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using c = System.Console; | |
using System.IO; | |
using System.Net; | |
namespace StretchUtak | |
{ | |
class Program |
using System; | |
using System.IO; | |
using System.Net; | |
using System.Text; | |
using System.Collections.Generic; | |
public class SSEvent { | |
public string Name { get; set; } | |
public string Data { get; set; } |
var sequence = Enumerable.Range(0, 3).ToList(); | |
while(true) { | |
sequence.ForEach(e => Console.Beep(650, 100)); | |
Thread.Sleep(200); | |
sequence.ForEach(e => Console.Beep(650, 400)); | |
Thread.Sleep(200); |
//var csv is the CSV file with headers | |
function csvJSON(csv){ | |
var lines=csv.split("\n"); | |
var result = []; | |
var headers=lines[0].split(","); | |
for(var i=1;i<lines.length;i++){ |
Reference: | |
Created by Redo The Web | |
http://redotheweb.com/2013/05/15/client-side-full-text-search-in-css.html |
<%@ WebHandler Language="C#" Class="PassThruProxy" Debug="true" %> | |
using System; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Text; | |
using System.Web; | |
/** | |
* <summary><c>PassThruProxy</c> is a simple pass-through proxy interface for C#.NET (IIS Servers).</summary> |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
using System; | |
using System.Net; | |
using System.Text; | |
using System.Threading; | |
namespace ExampleSimpleWebserver | |
{ | |
class Program | |
{ | |
static void Main (string[] args) |
# source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list | |
# A list of available STUN server. | |
stun.l.google.com:19302 | |
stun1.l.google.com:19302 | |
stun2.l.google.com:19302 | |
stun3.l.google.com:19302 | |
stun4.l.google.com:19302 | |
stun01.sipphone.com | |
stun.ekiga.net |
public interface IHttpMessageSerializer | |
{ | |
void Serialize(HttpResponseMessage response, Stream stream); | |
void Serialize(HttpRequestMessage request, Stream stream); | |
HttpResponseMessage DeserializeToResponse(Stream stream); | |
HttpRequestMessage DeserializeToRequest(Stream stream); | |
} | |
public class MessageContentHttpMessageSerializer : IHttpMessageSerializer |