Skip to content

Instantly share code, notes, and snippets.

@codler
codler / gist:845809
Created February 27, 2011 01:18
wget.exe
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using System.Text;
public class wget
{
# -*- encoding: utf8 -*-
#
# Simple WebSockets in Python
# By Håvard Gulldahl <havard@gulldahl.no>
#
# Based on example by David Arthur (he did all the hard work :)
# https://gist.github.com/512987
#
import struct
@codler
codler / gist:645911
Created October 25, 2010 22:21
Javascript Regex
// strip multiline comment
.replace(/\/\*((?:[^\*]|\*[^\/])*)\*\//g, '')