Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am alexmg on github.
  • I am alexmg (https://keybase.io/alexmg) on keybase.
  • I have a public key whose fingerprint is B4CE 07D1 AC0D 7C67 FBF2 6295 7478 05D5 1A1C 394A

To claim this, I am signing this object:

@alexmg
alexmg / 0_reuse_code.js
Created Jun 1, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View HTTP Server API .NET Wrapper
using System;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Net;
using System.Runtime.InteropServices;
using System.Security.Cryptography.X509Certificates;
using System.Security.Permissions;
using System.Security.Principal;
using System.Text;
@alexmg
alexmg / index.html
Created Jul 4, 2013
A CodePen by Seth Abbott. Feedly inspired nav - Tried to mimic the naviation in Feedly and convert it to a more desktop friendly mode. Kind of thrown together. I would probably change a few things If I was going to put this into production.
View index.html
<nav class="feedly">
<ul class="feedly-list">
<li class="feedly-list-item"><a href="#">
<span class="fontawesome-angle-right icon"></span>
<span class="label">Products</span>
</a>
<ul>
<li><a href="#">Product 1</a></li>
<li><a href="#">Product 2</a></li>
<li><a href="#">Product 3</a></li>
@alexmg
alexmg / gist:4070263
Created Nov 14, 2012
ToggleTabs macro for Visual Studio
View gist:4070263
Public Sub ToggleTabs()
If DTE.ActiveDocument.Language = "CSharp" Then
Dim currentSetting As Boolean = DTE.Properties("TextEditor", "CSharp").Item("InsertTabs").Value
DTE.Properties("TextEditor", "CSharp").Item("InsertTabs").Value = Not currentSetting
End If
If DTE.ActiveDocument.Language = "SQL" Then
Dim currentSQLSetting As Boolean = DTE.Properties("TextEditor", "SQL").Item("InsertTabs").Value
DTE.Properties("TextEditor", "SQL").Item("InsertTabs").Value = Not currentSQLSetting