Skip to content

Instantly share code, notes, and snippets.

Avatar

Siôn J. Lewis sionjlewis

View GitHub Profile
@sionjlewis
sionjlewis / SPO-Set-ListCTFieldDisplayOnNewOrEditForm.ps1
Last active May 21, 2021
PowerShell script: Use this script to update hide or show fields with SharePoint List/Library New and/or Edit forms.
View SPO-Set-ListCTFieldDisplayOnNewOrEditForm.ps1
# ======================================================================================================
# 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.
@sionjlewis
sionjlewis / ModernSiteSettings.ps1
Last active Jun 10, 2018
Microsoft Teams External Sharing with Anyone
View ModernSiteSettings.ps1
# ======================================================================================================
# .\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 / 02.tsconfig.json
Created Jan 8, 2017
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
View 02.tsconfig.json
{
"compilerOptions": {
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [ "es2015", "dom" ],
"module": "commonjs",
"moduleResolution": "node",
"noImplicitAny": true,
"removeComments": false,
@sionjlewis
sionjlewis / HAW03.systemjs.config.js
Last active Jan 8, 2017
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
View HAW03.systemjs.config.js
(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 / HAW04._index.v1.html
Last active Jan 8, 2017
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
View HAW04._index.v1.html
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
</head>
<body>
</body>
</html>
@sionjlewis
sionjlewis / HAW05._index.v2.html
Last active Jan 8, 2017
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
View HAW05._index.v2.html
<!DOCTYPE html>
<html>
<head lang="en">
<title>My iTunes Client App Test</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="Content/site.css" rel="stylesheet" />
<!-- Start Angular Setup -->
<!-- 1. Load libraries -->
@sionjlewis
sionjlewis / HAW06.site.css
Last active Jan 8, 2017
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
View HAW06.site.css
body {
color: #CCCCCC;
font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
margin: 10px;
}
.title {
color: #999999;
font-size: 16px;
font-weight: bold;
@sionjlewis
sionjlewis / HAW11._Layout.cshtml
Last active Jan 8, 2017
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
View HAW11._Layout.cshtml
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>@ViewBag.Title</title>
@Styles.Render("~/Content/css")
<!-- Start Angular Setup -->
@sionjlewis
sionjlewis / HAW09.app.module.ts
Last active Jan 8, 2017
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
View HAW09.app.module.ts
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
@NgModule({
imports: [BrowserModule],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
@sionjlewis
sionjlewis / HAW08.app.component.ts
Last active Jan 8, 2017
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
View HAW08.app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `<h1>Hello {{name}} World</h1>`,
})
export class AppComponent { name = 'Angular'; }