This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function (grunt) { | |
grunt.initConfig({ | |
// Some other grunt tasks | |
iisexpress: { | |
server: { | |
options: { | |
path: require('path').resolve('.') + '/[PATH OF WEBSITE HERE]', | |
killOn: 'iis.kill' | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Caching; | |
using System.IO; | |
using Umbraco.Core.Models; | |
using Umbraco.Core.Logging; | |
/// <summary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Get window width | |
**/ | |
var getWindowWidth = function() { | |
return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; | |
}; | |
/** | |
* Get window height | |
**/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static string CreateSnippet(string s, int length) | |
{ | |
if (String.IsNullOrEmpty(s)) | |
{ | |
return ""; | |
} | |
const string Ellipsis = "..."; | |
if (s.Length > length) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)presentModalViewController:(UIViewController *)modalViewController fromView:(UIView *)view | |
{ | |
if(SYSTEM_VERSION_LESS_THAN(@"6.0")) { | |
[modalViewController setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal]; | |
[self presentViewController:modalViewController animated:YES completion:nil]; | |
} else { | |
modalViewController.modalPresentationStyle = UIModalPresentationFormSheet; | |
UIGraphicsBeginImageContext(self.view.window.frame.size); | |
[self.view.window.layer renderInContext:UIGraphicsGetCurrentContext()]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
background:#ffffff; | |
background: -webkit-linear-gradient(top, #ecebeb 0%, #ffffff 50%, #ecebeb 100%); | |
background: -moz-linear-gradient(top, #ecebeb 0%, #ffffff 50%, #ecebeb 100%); | |
background: -o-linear-gradient(top, #ecebeb 0%, #ffffff 50%, #ecebeb 100%); | |
background: linear-gradient(top, #ecebeb 0%, #ffffff 50%, #ecebeb 100%); | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ecebeb'); |
NewerOlder