Skip to content

Instantly share code, notes, and snippets.

Andrew Connell andrewconnell

Block or report user

Report or block andrewconnell

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@andrewconnell
andrewconnell / repository.yml
Last active Sep 16, 2019
Automate Building, Testing and Deploying SharePoint Framework Projects with Azure Pipelines in Two Steps
View repository.yml
resources:
repositories:
- repository: azure-pipelines-spfx-templates
type: github
name: voitanos/azure-pipelines-spfx-templates
endpoint: voitanos-github
View VS Settings - Normal.cmd
@echo off
echo Setting Visual Studio Settings to: "AC Settings.settings"
"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe" /ResetSettings
"C:\Documents and Settings\\[PROFILE_NAME\]\My Documents\Visual Studio 2005\Settings\AC.vssettings"
View OnLoad.js
protected override void OnLoad(EventArgs e) {
// fully qualified name of the script
string scriptName ="JAXCC2006WebParts.CustomVerbsMenu.js"
// obtain reference to the page's client script manager
ClientScriptManager csMgr = Page.ClientScript;
// obtain the URL to the embedded JavaScript file in this assembly
string scriptURL = csMgr.GetWebResourceUrl(this.GetType(), scriptName);
View package.json wish
{
"name": "iPityDaFool",
"version": "0.0.1",
"private": true,
"scripts": {
"build": "gulp bundle",
"clean": "gulp clean",
"test": "gulp test"
},
"dependencies": {
View spfx-readme.md

<%= libraryName %>

This is where you include your project's documentation.

Building the code

Requires Gulp globally installed:

npm install --global gulp
View azure-pipelines-header.yml
trigger:
branches:
include:
- '*'
schedules:
- cron: "3 12,15,17,22 * * Mon-Fri"
displayName: Daily build of live site
branches:
include:
- master
View AttachTo_ASPNETWP.vbs
' This routine attaches to the ASP.NET worker
processSub AttachTo_ASPNETWP()
Dim attached AsBoolean = False
Dim proc As EnvDTE.Process
Dim processToAttachTo AsString
' name of the process to attach to
processToAttachTo = "aspnet_wp.exe"
' iterate through all processes running on the local machine
View BuildMssqlftQuery.1.cs
public string BuildMssqlftQuery(string searchParm,
string searchScope,
Components.AdvancedSearchOptions advancedOptions) {
StringBuilder keywordList = new StringBuilder();
// clean out noise
Stack cleanKeywords = this.RemoveNoise(searchParm,
ConfigurationSettings.AppSettings["SearchNoiseFile"].ToString()
);
View git1.sh
git checkout dev
# update your local dev to be a mirror of what's in the main repo
git pull --rebase upstream dev
View docker-compose.demo.yml
version: '2'
services:
webapp:
# use the image that's clean, ready to do the live coding demo
image: andrewconnell/pres-ng2-officeaddin:ng2-demo-start
ports:
- "443:3433"
# map the current folder root on HOST => CONTAINER so container will
# use files from HOST as I code locally
# but leave node_modules & typings in the container so don't have to
You can’t perform that action at this time.