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
param( | |
#provide the path for the input xml document | |
$xmlPath = "C:\temp\tiles-list-elements.xml", | |
#embed xml (for demo purposes) | |
$xmlContent = ' | |
<Data> | |
<Rows> | |
<Row> |
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 | |
#this script downloads an Excel document, saves it locally, and converts it to CSV | |
#by tiago duarte @ 15-sep-2015 | |
#http://about.me/tiagoduarte | |
#set parameters for calling externally | |
param( | |
$xlsUrl = "http://mywebsite.com/mydocument.xlsx", |
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
// ==UserScript== | |
// @name SharePoint Dev Tools | |
// @namespace TiagoDuarte | |
// @description Adds new buttons near the ribbon for typical SharePoint actions | |
// @version 3.7 | |
// @grant none | |
// @match https://*.sharepoint.com/* | |
// ==/UserScript== | |
/* |
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
//the form.js functions don't play well in IE9 mode | |
//lets override and fix them | |
//console.log("loading form.ie9fix.js"); | |
function RTE_GetEditorInstanceVariables(strBaseElementID) | |
{ULS1Lu:; | |
if (parent.g_oExtendedRichTextSupport !=null) | |
{ |
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
function ConvertEntityToSpan(ctx, entity) | |
{ULSGjk:; | |
if(matches[ctx]==null) | |
matches[ctx]=new Array(); | |
var key=entity.getAttribute("Key"); | |
var displayText=entity.getAttribute("DisplayText"); | |
var isResolved=entity.getAttribute("IsResolved"); | |
var description=entity.getAttribute("Description"); | |
var style='ms-entity-unresolved'; | |
if(isResolved=='True') |
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 | |
#this is a server side powershell script that enables and disables debugging on a sharepoint server | |
#note: if you have SP2013 with webapps/wsps in 2010 mode, you'll need to run $hive on 14 folder as well | |
#by tiago duarte @ 31-March-2015 | |
#http://about.me/tiagoduarte | |
param( | |
#webUrl empty will parse all web applications | |
$enable = $true, |
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.ComponentModel.DataAnnotations; | |
namespace ContactForm.Models | |
{ | |
public class ContactModel | |
{ | |
[Required] | |
[Display(Name = "First Name")] | |
public string FistName { get; set; } | |
[Required] |
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.Configuration; | |
using System.Net.Configuration; | |
using System.Net.Mail; | |
using System.Text; | |
using System.Web.Mvc; | |
using Umbraco.Web.Mvc; | |
using MailChimp; | |
using MailChimp.Lists; | |
namespace ContactForm.Controllers |
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
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage | |
@{ | |
Layout = "umbLayout.cshtml"; | |
} | |
<div class="darkBg"> | |
<div id="main-wrapper"> | |
<div id="main" class="container"> | |
<div class="row"> | |
<div class="col-md-7 col-sm-12"> | |
<div id="contactFom" class="row"> |
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
@inherits Umbraco.Web.Mvc.UmbracoViewPage<ContactForm.Models.ContactModel> | |
<script src="http://ajax.aspnetcdn.com/ajax/mvc/4.0/jquery.validate.unobtrusive.min.js" type="text/javascript"></script> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> | |
<style type="text/css"> | |
.has-error{ | |
color:red; | |
} | |
</style> |
OlderNewer