Skip to content

Instantly share code, notes, and snippets.

View gfrice's full-sized avatar
🎯
Focusing

Gene gfrice

🎯
Focusing
View GitHub Profile
@gfrice
gfrice / view-formatting.json
Last active March 14, 2019 20:47
Yearbook Order List View Formatting
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
"hideListHeader": true,
"hideSelection": true,
"rowFormatter": {
"elmType": "button",
"customRowAction": {
"action": "defaultClick"
},
"attributes": {
/**
* Secure Hash Algorithm (SHA1)
* http://www.webtoolkit.info/
**/
function SHA1(msg) {
function rotate_left(n,s) {
var t4 = ( n<<s ) | (n>>>(32-s));
return t4;
};
function lsb_hex(val) {
@gfrice
gfrice / column-formatting.schema.json
Created September 11, 2018 14:40
View Formatting
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
"hideListHeader": true,
"hideSelection": true,
"rowFormatter": {
"elmType": "button",
"customRowAction": {
"action": "defaultClick"
},
"attributes": {