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 {
@ido-ran
ido-ran / gist:1616572
Created January 15, 2012 17:51
GoWPF 1.3.1.4 Drag and Drop Issue
/* Copyright © Northwoods Software Corporation, 2008-2011. All Rights Reserved. */
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Xml.Linq;
using Northwoods.GoXam;