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 / 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.
@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 / 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 / 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 / HAW04._index.v1.html
Last active January 8, 2017 13:00
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
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
</head>
<body>
</body>
</html>
@sionjlewis
sionjlewis / HAW05._index.v2.html
Last active January 8, 2017 13:00
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
<!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 January 8, 2017 13:01
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
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 January 8, 2017 13:01
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
<!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 January 8, 2017 13:01
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
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 January 8, 2017 13:02
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
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `<h1>Hello {{name}} World</h1>`,
})
export class AppComponent { name = 'Angular'; }