View gist:d301259f7d9d6ea1d1d9
1 2 3 4 5 6 7 8 9
'use strict';
 
angular.module('FooApp')
.directive('repeatDone', ['$timeout', function ($timeout) {
return {
restrict: 'A',
link: function postLink(scope, element, attrs) {
var action = attrs.repeatDone;
View SQLServerRebuildIndexes.ps1
1 2 3 4 5 6 7 8 9
$serverName = ""
$userName = ""
$password = ""
$maxFragmentation = 10
 
$databases = @("Sitecore_Core", "Sitecore_Master", "Sitecore_Web")
 
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo")
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.ConnectionInfo")
View TheEndIsNear.cs
1 2 3 4 5 6 7 8 9 10
class Program
{
static void Main(string[] args)
{
typeof (DateTime)
.GetField("MaxValue")
.SetValue(DateTime.MaxValue, new DateTime(2012, 12, 21));
 
var endOfWorld = DateTime.MaxValue;
}
Something went wrong with that request. Please try again.