Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View andyraddatz's full-sized avatar

λndy andyraddatz

  • Stretch Consulting
  • Minnesota
View GitHub Profile

Keybase proof

I hereby claim:

  • I am andyraddatz on github.
  • I am urtext (https://keybase.io/urtext) on keybase.
  • I have a public key ASDu82YOEOk-qPyAwsIRY28GI8APep8wwwLbtzX87HK-awo

To claim this, I am signing this object:

@andyraddatz
andyraddatz / hello-bluesky-verification.js
Created October 15, 2021 22:28
BlueSky - How to verify ownership of accounts and content across 3 platforms
// Node.js script
// npm install noble-bls12-381 - https://github.com/paulmillr/noble-bls12-381
const bls = require('noble-bls12-381');
const util = require('util');
const txtEncoder = new util.TextEncoder();
function arrayToHex(array) {
return Array.from(array)
.map(c => c.toString(16).padStart(2, "0"))
.join("");
@andyraddatz
andyraddatz / ASCIIStringExtensions.cs
Last active December 12, 2023 08:55
C# String extension method to fold diacritics to ASCII characters
// IMPORTANT
using System.Text;
// This gist was created thanks to this comment from Alexander on StackOverflow:
// https://stackoverflow.com/questions/249087/how-do-i-remove-diacritics-accents-from-a-string-in-net#comment86833005_34272324
// This is a derivative work. The logic of this function comes from a switch statement found inside the
// Lucene.Net library. The documentation of the conversion of characters is quite impressive
// (thank you @NightOwl888 and @synhershko !!!):
// https://github.com/apache/lucenenet/blob/master/src/Lucene.Net.Analysis.Common/Analysis/Miscellaneous/ASCIIFoldingFilter.cs
@andyraddatz
andyraddatz / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console