This file contains hidden or 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
async function executeQuery(context) { | |
return new Promise((resolve, reject) => { | |
context.executeQueryAsync(function () { | |
resolve(); | |
}, function (sender, args) { | |
reject(args); | |
}); | |
}); | |
} |
This file contains hidden or 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
[ | |
{ | |
"photo_id": 27932, | |
"name": "Atardecer en Embalse", | |
"photo_url": "http://www.panoramio.com/photo/27932", | |
"photo_file_url": "http://mw2.google.com/mw-panoramio/photos/medium/27932.jpg", | |
"lng": -64.404945, | |
"lat": -32.202924, | |
"width": 500, | |
"height": 375, |
This file contains hidden or 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 Get-SPOWebs(){ | |
param( | |
$Url = $(throw "Please provide a Site Collection Url"), | |
$Credential = $(throw "Please provide a Credentials") | |
) | |
$context = New-Object Microsoft.SharePoint.Client.ClientContext($Url) | |
$context.Credentials = $Credential | |
$web = $context.Web | |
$context.Load($web) |
This file contains hidden or 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
[ | |
{ | |
"lat": 51.231469, | |
"lng": 4.402005299999973, | |
"id": 1 | |
}, | |
{ | |
"lat": 51.2561314, | |
"lng": 4.372296000000051, | |
"id": 2 |
This file contains hidden or 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; | |
import java.util.Locale; | |
/** | |
* A place on Earth, represented by a latitude/longitude pair. | |
*/ | |
public class LatLng | |
{ |
This file contains hidden or 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 hidden or 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\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll" | |
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll" | |
Add-Type -Path "C:\Program Files\SharePoint Client Components\16.0\Assemblies\Microsoft.Online.SharePoint.Client.Tenant.dll" | |
function Connect-SPO ([string] $Username, [string]$Password, [string]$Url) { | |
$Context = New-Object Microsoft.SharePoint.Client.ClientContext($Url) | |
$Context.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Username, $(ConvertTo-SecureString -AsPlainText $Password -Force)) | |
$Context.ExecuteQuery() | |
This file contains hidden or 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.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client.dll") | |
#[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client.Runtime.dll") | |
#[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Online.SharePoint.Client.Tenant.dll") | |
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll" | |
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll" | |
Add-Type -Path "C:\Program Files\SharePoint Client Components\16.0\Assemblies\Microsoft.Online.SharePoint.Client.Tenant.dll" | |
function Connect-SPO ([string] $Username, [string]$Password, [string]$TenantUrl) { | |
$Context = New-Object Microsoft.SharePoint.Client.ClientContext($TenantUrl) |
This file contains hidden or 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": "Oslo", | |
"position" : { | |
"lat": 59.923043, | |
"lng": 10.752839 | |
} | |
}, | |
{ | |
"name": "Stockholm", |
This file contains hidden or 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": "Oslo", | |
"position" : { | |
"lat": 59.923043, | |
"lng": 10.752839 | |
} | |
}, | |
{ | |
"name": "Stockholm", |