Skip to content

Instantly share code, notes, and snippets.

View codegard1's full-sized avatar

Chris Odegard codegard1

View GitHub Profile
Build project .\matrix-multiplication from .\matrix-multiplication.lid
...
Opened project matrix-multiplication (C:\Users\n5014\Documents\git\algorithms\matrix-multiplication\matrix-multiplication.hdp)Loading namespace for library matrix-multiplicationUpdating definitions for library matrix-multiplication
C:\Users\n5014\Documents\git\algorithms\matrix-multiplication\matrix-multiplication.dylan:34: Serious warning - Unexpected token ")".
-
if (j < (rows(m)) - 1))
-
Computing data models for library matrix-multiplication
Computing code models for library matrix-multiplication
<div id="results"></div>
<script type="text/javascript">
console.time('initialize');
function retrieveWebSiteProperties(siteUrl) {
var clientContext = SP.ClientContext.get_current();
this.oWebsite = clientContext.get_web();
this.collList = oWebsite.get_lists();
this.listInfoCollection = clientContext.load(collList);
@codegard1
codegard1 / pageview-tracker.js
Created November 28, 2018 14:52
Script to log page views in SharePoint. Include this script in the master pages to track user activity
function main() {
console.time("pageview");
SP.SOD.executeFunc("SP.js", "SP.ClientContext", function() {
/**
* Create a new item in the pageview list at ~/lists/pageviews
*/
// Get the querystring
var queryString = window.location.href.split("?")
Module: matrix-multiplication
Synopsis:
Author: Chris Odegard
Copyright: 2018
define class <matrix> (<object>)
slot name :: <string>, init-value: "Matrix";
slot rows :: <integer>, init-value: 3;
slot cols :: <integer>, init-value: 3;
slot multiplier :: <integer>, init-value: 5;
@codegard1
codegard1 / nintex-show-attachments.js
Last active June 30, 2023 14:28
Show current item's attachments on the form
/* In the context of a Nintex form in SharePoint:
/* use jQuery (NWF$) to fetch the attachments of the current list item and display them
/* on the form, using a DIV element inside a Multiline Text Control as the container. */
NWF.FormFiller.Events.RegisterAfterReady(function () {
/* CONFIGURATION */
var siteURL = "https://site.com"; // no trailing slash
var listName = "A List of Items with Image Attachments" // use the list display name;
var itemId = GetUrlKeyValue('ID'); // or ({ItemProperty:ID}) if you are embedding the code into the form