Skip to content

Instantly share code, notes, and snippets.

View MiguelMadero's full-sized avatar

Miguel Madero MiguelMadero

View GitHub Profile
using System;
using System.Linq;
using Autofac;
using Autofac.Builder;
using Autofac.Core;
using Autofac.Features.Scanning;
namespace HiddenNamespace
{
public static class RegistrationExtensions
@MiguelMadero
MiguelMadero / AgileFailManifesto.md
Created October 11, 2012 14:02
AgileFail Manifesto

#Manifesto for Agile Software Development

We were in a rush to uncover better ways of developing software. Agile is supposed to be fast, so we did an Agile implementation of Agile and we skipped all the values and focused on the practices. Through this work we have come to value:

Daily Standups over Individuals and Interactions

Demos over Working Software

Planning Meetings over Customer Collaboration

@MiguelMadero
MiguelMadero / GreatSubscribeBackEmail
Created February 7, 2013 16:35
Moosejaw does great at trying to get me back on their list. I've been unsbuscribing from tens of lists, most of them suck at this. They either make it really hard, which makes me hate them even more or they make it soooo easy, that there's no chance I'm going back. There're a few that are a bit more clever and even make me think, quickly, before…
Dear Miguel,
We are soooo embarrassed. We just discovered an error in our email subscription process that may have caused you to be unintentionally removed from our email list. Because of this oversight, you've missed our award winning emails like:
Free $100 Mystery Gift
Moosejaw Break-up Service
Patagonia up to 50% off for the First Time
Free Beer
Get 20% off Everything
A Quick Quiz - Are you the smartest person ever?
@MiguelMadero
MiguelMadero / turbo_link_hack.js
Last active December 27, 2015 10:18
Turbo Link Hack for CoffeeScript

Developer Anonymous - 12 Steps to Recovery of a Codebase

  1. We admitted we were powerless over our codebase - that our lives had become unmanageable.
  2. Came to believe that a Power greater than ourselves could restore us to sanity. [A new TLD, Framework or Methodology]
  3. Made a decision to turn our will and our lives over to the care of [Whatever new TLD we picked] as we understood Him.
  4. Made a searching and fearless moral inventory of codebase.
  5. Admitted to our colleagues, to ourselves and to another human being the exact nature of our wrongs. (We had a retrospective)
  6. Were entirely ready to have [Whatever new TLD we picked] remove all these defects of character.
  7. Humbly asked Him to remove our shortcomings.
  8. Made a list of all persons users we had harmed, and became willing to make amends to them all.
@MiguelMadero
MiguelMadero / gist:dc933b90d89fbe68511c
Last active August 29, 2015 14:09
inject-store-on-components
Ember.onLoad('Ember.Application', function(Application) {
Application.initializer({
name: 'inject-store-on-components',
initialize: function(container, application) {
application.inject('component', 'store', 'store:main');
}
});
});
var BodyEventListener = Ember.Mixin.create({
bodyElementSelector: 'html',
bodyClick: Ember.K,
bubbleEvents: false,
didInsertElement: function() {
this._super();
return Ember.run.next(this, this._setupDocumentHandlers);
},
willDestroyElement: function() {
this._super();
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
import Ember from 'ember';
var people = [{name: 'Miguel', isActive: false}, {name: 'Kevin', isActive: true}];
var resolve;
var promise = new Ember.RSVP.Promise(function (reject, resolve) {
resolve = resolve;
});
resolve();
export default Ember.Controller.extend({
appName: 'Ember Twiddle',