Skip to content

Instantly share code, notes, and snippets.

View webventiv's full-sized avatar

Robert Sikkens webventiv

  • The Netherlands
View GitHub Profile
@webventiv
webventiv / PostToUrlAsJson.cs
Last active October 21, 2024 09:58 — forked from alirobe/PostToUrlAsJson.cs
Umbraco Forms Workflow - POST to URL as JSON (with optional Bearer Access Token). Just place this file anywhere in your Umbraco+Forms project, and the dependency injection will pick it up. This will allow you to connect to Microsoft Flow or Zapier or any integration web service, from which you can send to Salesforce/Dynamics/etc.
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Dynamic;
using System.Net;
using System.Net.Http.Headers;
using System.Runtime.CompilerServices;
using System.Text;
using Umbraco.Cms.Core.Models.PublishedContent;
@webventiv
webventiv / IBAN_Regex.md
Created April 4, 2024 09:35 — forked from akndmr/IBAN_Regex.md
Global IBAN regex
const val IBAN_REGEX =  "^([A-Z]{2}[ '+'\\\\'+'-]?[0-9]{2})(?=(?:[ '+'\\\\'+'-]?[A-Z0-9]){9,30}\$)((?:[ '+'\\\\'+'-]?[A-Z0-9]{3,5}){2,7})([ '+'\\\\'+'-]?[A-Z0-9]{1,3})?\$"

Successfully tested against below IBAN samples.

Length
Country(TR) Country Code