Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>C# Unit Test Method</Title>
<Shortcut>testmethod</Shortcut>
<Description>Code snippet for creating an NUnit unit test in C#</Description>
<Author>Sean Goresht</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
@srsgores
srsgores / folding.mixin.less
Created August 26, 2012 22:37
Dynamic Fold LESS Generation
.setColumnWidths(@maxcolumns, @num_cols, @min_resolution){
@media screen and(min-width: @min_resolution) {
.row {
.onecol {
width: percentage(~`Math.min(1, (1 / @{num_cols}*Math.ceil(@{num_cols}*1/@{maxcolumns})))`);
}
.twocol {
width: percentage(~`Math.min(1, (1 / @{num_cols}*Math.ceil(@{num_cols}*2/@{maxcolumns}))) `);
}
.threecol {
@srsgores
srsgores / ajaxify-html5.js
Created August 11, 2012 08:33 — forked from balupton/README.md
Ajaxify a Website with the HTML5 History API using History.js, jQuery and ScrollTo
// https://gist.github.com/854622
(function(window,undefined){
// Prepare our Variables
var
History = window.History,
$ = window.jQuery,
document = window.document;
// Check to see if History.js is enabled for our Browser