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 "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll" | |
Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll" | |
Function Ensure-Folder() | |
{ | |
Param( | |
[Parameter(Mandatory=$True)] | |
[Microsoft.SharePoint.Client.Web]$Web, |
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
/** | |
* @name MarkerClustererPlus for Google Maps V3 | |
* @version 2.1.2 [May 28, 2014] | |
* @author Gary Little | |
* @fileoverview | |
* The library creates and manages per-zoom-level clusters for large amounts of markers. | |
* <p> | |
* This is an enhanced V3 implementation of the | |
* <a href="http://gmaps-utility-library-dev.googlecode.com/svn/tags/markerclusterer/" | |
* >V2 MarkerClusterer</a> by Xiaoxi Wu. It is based on the |
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 jsonSPHeaders = { | |
"Accept": "application/json;odata=verbose", | |
"Content-Type": "application/json;odata=verbose", | |
"DataServiceVersion": "3.0" | |
}; | |
OData.request( { | |
requestUri: _spPageContextInfo.webAbsoluteUrl + "/_api/$batch", | |
method: "POST", | |
headers: { "X-RequestDigest": $("#__REQUESTDIGEST").val(), |
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 listTitle = "Requests"; //list title | |
var itemId = 1; //list item id | |
var targetFolderUrl = "/Lists/Requests/Archive"; //target folder server relative url | |
var ctx = SP.ClientContext.get_current(); | |
var list = ctx.get_web().get_lists().getByTitle(listTitle); | |
var item = list.getItemById(itemId); | |
ctx.load(item,['FileRef','FileDirRef']); | |
ctx.executeQueryAsync( | |
function(){ |
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
<?php | |
require_once './vendor/autoload.php'; | |
$settings = include('./settings.php'); | |
use Office365\Runtime\Auth\ClientCredential; | |
use Office365\SharePoint\CamlQuery; | |
use Office365\SharePoint\ClientContext; | |
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
package org.vgrem.geotools; | |
public class UTMConverter { | |
/* Ellipsoid model constants (actual values here are for WGS84) */ | |
private static final double MAJOR_RADIUS = 6378137.0; | |
private static final double MINOR_RADIUS = 6356752.314; | |
private static final double SCALE_FACTOR = 0.9996; |
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 "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll" | |
Add-Type –Path "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll" | |
$AdminUrl = "https://tenant-admin.sharepoint.com/" | |
$UserName = "username@tenant.onmicrosoft.com" | |
$Password = "password" | |
$SecurePassword = $Password | ConvertTo-SecureString -AsPlainText -Force | |
$Credentials = New-Object -TypeName System.Management.Automation.PSCredential -argumentlist $userName, $SecurePassword | |
$SPOCredentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($UserName, $SecurePassword) |
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 search(webUrl,queryText,rowLimit,startRow,allResults) | |
{ | |
var allResults = allResults || []; | |
var url = webUrl + "/_api/search/query?querytext='" + queryText + "'&rowlimit=" + rowLimit + "'&startrow=" + startRow; | |
return $.getJSON(url).then(function(data) { | |
var relevantResults = data.PrimaryQueryResult.RelevantResults; | |
allResults = allResults.concat(relevantResults.Table.Rows); | |
if (relevantResults.TotalRows > startRow + relevantResults.RowCount) { | |
return search(webUrl,queryText,rowLimit,startRow+relevantResults.RowCount,allResults); | |
} |
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.Collections.Generic; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
namespace SharePoint.Client | |
{ | |
/// <summary> |
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 Microsoft.Graph; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using System; | |
using System.Collections.Generic; | |
using System.Dynamic; | |
using System.IO; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Net.Http.Headers; |
NewerOlder