This file contains 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
declare namespace Umbraco.Directives { | |
/** | |
* Used to implement <umb-table> directive | |
* Usage: | |
* <umb-table | |
* ng-if="participants" | |
* items="items" | |
* allow-select-all="options.bulkActionsAllowed" | |
* item-properties="options.includeProperties" | |
* on-select="vm.selectItem" |
This file contains 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.Globalization; | |
namespace Umbraco.Examine | |
{ | |
public static class ExamineExtensions | |
{ | |
private static string format = "yyyyMMddHHmmssfff"; | |
public static DateTime? ParseExamineDate(this string s) |
This file contains 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
/// <binding ProjectOpened='watch' /> | |
'use strict'; | |
require('es6-promise').polyfill(); | |
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var sourcemaps = require("gulp-sourcemaps"); | |
var autoprefixer = require('gulp-autoprefixer'); | |
var autoprefixerOptions = { |
This file contains 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
<%@ Import Namespace="System.IO" %> | |
<%@ Import Namespace="System.Configuration" %> | |
<%@ Import Namespace="System.Net.Mail" %> | |
<%@ Import Namespace="System.Net.Sockets" %> | |
<%@ Import Namespace="System.Net.Security" %> | |
<%@ Import Namespace="System.Net.Configuration" %> | |
<%@ Import Namespace="Umbraco.Core.Configuration" %> | |
<%@ Page Language="C#" %> |
This file contains 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.Drawing; | |
using System.Drawing.Imaging; | |
using System.IO; | |
using System.Threading; | |
using System.Windows.Forms; | |
/// http://stackoverflow.com/questions/2715385/convert-webpage-to-image-from-asp-net | |
public class WebsiteToImage | |
{ | |
private Bitmap m_Bitmap; |
This file contains 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
/// <summary> | |
/// Gets the media item by it's file path | |
/// </summary> | |
/// <remarks> | |
/// Example usage: Use in conjunction with HtmlAgilityPack or WYSIWYG.xslt to parse your RTE for Media Images, grab associated | |
/// properties from the Media node, and render them in your output (think alt tags, captions, etc). | |
/// TODO: support non "/media" directory, cleanup & further testing | |
/// </remarks> | |
/// <param name="mediaPath">Path to the uploaded file in the media directory</param> | |
/// <returns>Media node which contains the specified file</returns> |
This file contains 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 App { | |
"use strict"; | |
interface IMyResource { | |
getData: () => string; | |
} | |
class MyResource implements IMyResource { | |
static $inject: string[] = ["$http"]; |
This file contains 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
/// <reference path="roundabout.ts" /> | |
// Return either top, left, bottom or right. | |
module Roundabout.Extentions { | |
export interface IOptions { | |
Speed: number; | |
Time: number; | |
Auto: boolean; | |
} | |
export enum Directions { |
This file contains 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 class XmlConvert | |
{ | |
public static string SerializeObject<T>(T dataObject, Formatting formatting = Formatting.None) | |
{ | |
if (dataObject == null) | |
{ | |
return string.Empty; | |
} | |
try | |
{ |