Skip to content

Instantly share code, notes, and snippets.

View randyburden's full-sized avatar

Randy Burden randyburden

View GitHub Profile
@bbrown
bbrown / NEWID.sql
Created February 10, 2016 16:33
Create GUID, remove dashes, and lower case in T-SQL
SELECT LOWER(REPLACE(NEWID(),'-',''))
@EdCharbeneau
EdCharbeneau / kendo-export.js
Created March 24, 2015 15:06
Export to image with Kendo UI
// Convert the DOM element to a drawing using kendo.drawing.drawDOM
kendo.drawing.drawDOM($(".qr-wrapper")) //#qrMail
.then(function(group) {
// Render the result as a PNG image
return kendo.drawing.exportImage(group);
})
.done(function(data) {
// Save the image file
kendo.saveAs({
dataURI: data,
@randyburden
randyburden / NHibernateHelper.cs
Created November 28, 2012 21:02
NHibernate Helper Class
using FluentNHibernate.Cfg;
using FluentNHibernate.Cfg.Db;
using NHibernate;
using NHibernate.Cfg;
/// <summary>
/// NHibernate Helper
/// </summary>
/// <remarks>
/// Because the SessionFactory creation is lazy-loaded, you technically never need to bootstrap NHibernate
@randyburden
randyburden / FluentTableCells.js
Created May 7, 2012 19:01
Fluent Table Cells - An easily extendible fluent interface for programmatically creating table cells in JavaScript.
/*!
* Fluent Table Cells - An easily extendible fluent interface for programmatically creating table cells in JavaScript.
* Author: Randy Burden
* http://www.randyburden.com
* Open Source Url: https://gist.github.com/2629702
*
* Example usage:
var row = '<tr>';