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
export default class Quotes extends React.Component<IQuoteProps, IQuoteState> { | |
constructor(props) { | |
super(props); | |
this.state = { | |
error: null, | |
censusItems: [] | |
}; | |
} | |
} |
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
export interface IQuoteState { | |
error?: string; | |
quoteItems?: IQuoteItem[]; | |
} |
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
=LEFT(RIGHT([URLCOLUMN],LEN([URLCOLUMN])-INT(FIND("DefaultView=",[URLCOLUMN])+11)),INT(FIND("&",RIGHT([URLCOLUMN],LEN([URLCOLUMN])-INT(FIND("DefaultView=",[URLCOLUMN])+11))))-1) |
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
#!/bin/bash | |
# Sometimes you need to move your existing git repository | |
# to a new remote repository (/new remote origin). | |
# Here are a simple and quick steps that does exactly this. | |
# | |
# Let's assume we call "old repo" the repository you wish | |
# to move, and "new repo" the one you wish to move to. | |
# | |
### Step 1. Make sure you have a local copy of all "old repo" | |
### branches and tags. |
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
var showDocs = function() { | |
var qGroups = Srch.ScriptApplicationManager.get_current().queryGroups; | |
$.each(qGroups, function() { | |
if (this.displays != null && this.displays.length > 0) { | |
// Result source GUID | |
this.dataProvider.set_sourceID('70949b02-0f2c-4026-9c4f-c9d6e0023aa4'); | |
this.dataProvider.issueQuery(); | |
} | |
}); | |
}; |
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
try { | |
$rendition = New-Object Microsoft.SharePoint.Client.Publishing.ImageRendition | |
$rendition.Name = $Title | |
$rendition.Width = $Width | |
$rendition.Height = $Height | |
$renditionCol.Add($rendition) | |
[Microsoft.SharePoint.Client.Publishing.SiteImageRenditions]::SetRenditions($ctx,$renditionCol) | |
$ctx.ExecuteQuery() | |
} |
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
Add-Type -Path "Microsoft.SharePoint.Client.dll" | |
Add-Type -Path "Microsoft.SharePoint.Client.Runtime.dll" |
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
try{ | |
$itemCreateInfo = New-Object Microsoft.SharePoint.Client.ListItemCreationInformation | |
$listItem = $list.addItem($itemCreateInfo) | |
$daten = Get-Date | |
$listItem.set_item('Title',$daten) | |
$listItem.update() | |
$ctx.Load($listItem) | |
$ctx.ExecuteQuery() | |
Write-Output "Item successfully created." | |
} |
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
$pubPageInfo = New-Object Microsoft.SharePoint.Client.Publishing.PublishingPageInformation | |
$pubPageInfo.Name = $CSVitem.Name.Replace(" ", "-") + ".aspx" | |
$pubPageInfo.PageLayoutListItem = $tpLayoutItem | |
$pubPage = $pubWeb.AddPublishingpage($pubPageInfo) | |
$ctx.Load($pubPage) | |
$ctx.ExecuteQuery() | |
$listItem = $pubPage.get_listItem() | |
$ctx.Load($listItem) |
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
$mpList = $rootWeb.Lists.GetByTitle('Master Page Gallery') | |
$camlQuery = New-Object Microsoft.SharePoint.Client.CamlQuery | |
$camlQuery.ViewXml = '<View Scope="RecursiveAll"><Query><Where><Eq><FieldRef Name="FileLeafRef" /><Value Type="Text">YOURLAYOUT.aspx</Value></Eq></Where></Query></View>' | |
$items = $mpList.GetItems($camlQuery) | |
$ctx.Load($items) | |
$ctx.ExecuteQuery() | |