Skip to content

Instantly share code, notes, and snippets.

@alexmg
alexmg / 0_reuse_code.js
Created June 1, 2014 14:58
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@alexmg
alexmg / gist:4070263
Created November 14, 2012 04:29
ToggleTabs macro for Visual Studio
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
@alexmg
alexmg / index.html
Created July 4, 2013 14:56
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.
<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>
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;

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: