Skip to content

Instantly share code, notes, and snippets.

@Vassi
Vassi / application.controller.js
Last active September 4, 2015 13:46
Private Binding
import Ember from 'ember';
export default Ember.Controller.extend({
service: Ember.inject.service('thing-service'),
color: Ember.computed.alias('service.color'),
appName:'Ember Twiddle',
actions: {
changeColor() {
@Vassi
Vassi / HasAllowanceAttribute.cs
Created March 2, 2012 16:34
Example of a custom Authorization attribute.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using MvcFlash.Core;
using System.Web;
using LC.MVC.UserModule;
namespace LC.MVC.UserModule.Infrastructure