Skip to content

Instantly share code, notes, and snippets.

View sionjlewis's full-sized avatar

Siôn J. Lewis sionjlewis

View GitHub Profile
@sionjlewis
sionjlewis / HAW03.systemjs.config.js
Last active January 8, 2017 12:59
Hello Angular World: code snippet for article (http://www.sjlewis.com). The complete source code and project files can be found here: https://github.com/sionjlewis/Hello.Angular.World
(function (global) {
System.config({
paths: {
// Paths serve as alias (ASP.NET MVC: prefix / to specify the root).
'npm:': 'node_modules/'
},
// Map tells the System loader where to look for things.
map: {
// Our app is within the app folder (ASP.NET MVC: prefix / to specify the root).
app: 'app',
@sionjlewis
sionjlewis / 02.tsconfig.json
Created January 8, 2017 12:58
Hello Angular World: code snippet for article (http://www.sjlewis.com). The complete source code and project files can be found here: https://github.com/sionjlewis/Hello.Angular.World
{
"compilerOptions": {
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [ "es2015", "dom" ],
"module": "commonjs",
"moduleResolution": "node",
"noImplicitAny": true,
"removeComments": false,
@sionjlewis
sionjlewis / ModernSiteSettings.ps1
Last active June 10, 2018 22:48
Microsoft Teams External Sharing with Anyone
# ======================================================================================================
# .\ModernSiteSettings.ps1
# ------------------------------------------------------------------------------------------------------
# Modified by: Siôn Lewis
# Modified Date: 10/06/2018
# ------------------------------------------------------------------------------------------------------
# https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/set-sposite?view=sharepoint-ps
# https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/set-pnptenant?view=sharepoint-ps
# ------------------------------------------------------------------------------------------------------
# Trouble shooting: _ReadMe.md
@sionjlewis
sionjlewis / SPO-Set-ListCTFieldDisplayOnNewOrEditForm.ps1
Last active May 21, 2021 11:14
PowerShell script: Use this script to update hide or show fields with SharePoint List/Library New and/or Edit forms.
# ======================================================================================================
# SPO-Set-ListCTFieldDisplayOnNewOrEditForm.ps1
# Use this script to update hide or show fields with SharePoint List/Library New and/or Edit forms.
# ------------------------------------------------------------------------------------------------------
# Created By: Siôn Lewis
# Created Date: 21/05/2021
# Modified By: Siôn Lewis
# Modified Date: 21/05/2021
# ------------------------------------------------------------------------------------------------------
# Instructions: 1. Update the variables at the top of the script before running in your environment.