Skip to content

Instantly share code, notes, and snippets.

View timerickson's full-sized avatar

Tim Erickson timerickson

View GitHub Profile
@timerickson
timerickson / GistSharp
Created April 16, 2011 22:43
Post Gist from C#
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
namespace ConsoleApplication1
{
class Program
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
namespace ConsoleApplication1
{
class Program
@timerickson
timerickson / gist:945448
Created April 27, 2011 23:16 — forked from anonymous/gist:945443
I SHARED CODE WITH STFU and CODE!
using System;
using System.Linq;
public class Foo
{
public static void Main()
{
// STFU and Code Here!
var i = 42;
Console.WriteLine("The answer is: " + i + "!");
https://gist.github.com/959493
https://gist.github.com/959493
https://gist.github.com/959501
@timerickson
timerickson / rig
Created March 4, 2012 17:49
Get Global object - js
// var getGlobal = function () {
//// return (function () { return this; }).call(null);
// return window;
// };
using System;
using System.Runtime.InteropServices;
namespace ProxySetup
{
public abstract class WinHttpProxyWin32
{
/// <summary>
/// WINHTTP_PROXY_INFO - structure supplied with WINHTTP_OPTION_PROXY to
/// get/set proxy information on a WinHttpOpen() handle
using System;
using System.Runtime.InteropServices;
namespace ProxySetup
{
public abstract class WinHttpProxyWin32
{
/// <summary>
/// WINHTTP_PROXY_INFO - structure supplied with WINHTTP_OPTION_PROXY to
/// get/set proxy information on a WinHttpOpen() handle