Skip to content

Instantly share code, notes, and snippets.

View emw-ghertner's full-sized avatar

Eric Warren emw-ghertner

  • Ghertner & Company
  • Nashville, TN
View GitHub Profile
@asafge
asafge / ng-really.js
Created November 12, 2013 13:06
ng-really? An AngularJS directive that creates a confirmation dialog for an action.
/**
* A generic confirmation for risky actions.
* Usage: Add attributes: ng-really-message="Are you sure"? ng-really-click="takeAction()" function
*/
angular.module('app').directive('ngReallyClick', [function() {
return {
restrict: 'A',
link: function(scope, element, attrs) {
element.bind('click', function() {
var message = attrs.ngReallyMessage;
@danmusk
danmusk / ElmahMigration.cs
Last active April 4, 2016 14:40
EF Migrations for Elmah. Include sql for Elmah in Azure (by Roberto Bonini).
public partial class Elmah : DbMigration
{
public override void Up()
{
Sql(CreateTable_ELMAH_Error);
Sql(CreatreProcedure_ELMAH_GetErrorXml);
Sql(CreateProcedure_ELMAH_GetErrorsXml);
Sql(CreateProcedure_ELMAH_LogError);
}