Skip to content

Instantly share code, notes, and snippets.

@SabbeRubbish
SabbeRubbish / knockout.autonumeric.js
Last active May 14, 2016 20:42 — forked from bonza-labs/knockout.autonumeric.js
The previous version of this Gist wasn't up to date anymore with the latest version of autoNumeric (1.9.17). Not saying this works perfectly, but first tests show that it does work.
ko.bindingHandlers.autoNumeric = {
init: function (el, valueAccessor, bindingsAccessor, viewModel) {
var $el = $(el),
bindings = bindingsAccessor(),
settings = bindings.settings,
value = valueAccessor();
$el.autoNumeric(settings);
$el.autoNumeric('set', parseFloat(ko.utils.unwrapObservable(value()), 10));
$el.change(function() {
@joerodgers
joerodgers / Invoke-ListPermissionInheritanceReset.ps1
Last active June 4, 2024 13:46
Script to reset permission inheritance on lists in a site collection in SharePoint Online.
#requires -modules "PnP.PowerShell"
[System.Net.WebRequest]::DefaultWebProxy.Credentials = [System.Net.CredentialCache]::DefaultCredentials
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12
function Invoke-FolderPermissionInheritanceReset
{
[CmdletBinding()]
param
(