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
#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
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
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> |
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
<system> | |
<defaultproxy> | |
<proxy bypassonlocal="True" proxyaddress="http://domain:port"> | |
</proxy></defaultproxy> | |
</system> |
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
<projecttypeguids></projecttypeguids> |
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 showRibbonOnCustomizedPages() | |
{ | |
if(window.location.href.contains("/Forms/AllItems.aspx")) | |
{ | |
//console.log("library page"); | |
var listViews = $('.ms-listviewtable'); | |
if(listViews.length === 1) | |
{ | |
//console.log('only one view found'); |
OlderNewer