Skip to content

Instantly share code, notes, and snippets.

:⌉
=⌉
¦-) as opposed to |
⍥ om nom nom
import System
def is_assembly_debug_build(filename):
"""Returns true if filename appears to have been built in debug mode"""
result = False
dll = System.Reflection.Assembly.LoadFile(filename)
customAttribs = dll.GetCustomAttributes(False)
for att in customAttribs:
if att.GetType() == System.Type.GetType("System.Diagnostics.DebuggableAttribute"):
result = att.IsJITTrackingEnabled
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Github.Gist.Logging {
public interface ILogger {
void Warn(string s);
void Warn(string s, Exception ex);
- simple
- public over private
- personal vanity
- internet is global
- permalinks
- one important item per page
- don't break the browser
- don't wanker in technology
- a medium is not a grande
- break convention for your users
@ianoxley
ianoxley / StringHelpers.cs
Created May 14, 2009 14:59
Some string extension methods for C# 3.0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace GitHub.Gist {
/// <summary>
/// Extension methods for working with strings
/// </summary>