Skip to content

Instantly share code, notes, and snippets.

function UserCtrl(
$scope,
$FB) {
$scope.$watch(function() {
return $FB.isLoaded()
},function(value){
console.log("VALUE",value);
// It needs authentication, this won't work.
@ido-ran
ido-ran / ProfiledRazorViewEngine.cs
Last active December 17, 2015 21:39
Profiler for Razor View Engine using MiniProfiler
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using StackExchange.Profiling;
namespace MiniProfiler.Razor {
public class ProfiledRazorViewEngine : RazorViewEngine {