Skip to content

Instantly share code, notes, and snippets.

Avatar

Marc Durdin mcdurdin

View GitHub Profile
View langtags.schema.json
{
"$schema": "http://json-schema.org/schema#",
"$ref": "#/definitions/langtags",
"definitions": {
"langtags": {
"type": "array",
"items": { "oneOf": [
{"$ref": "#/definitions/langtag"},
{"$ref": "#/definitions/_globalvar"},
{"$ref": "#/definitions/_phonvar"},
@mcdurdin
mcdurdin / strava-giro-graph.js
Last active Dec 31, 2017
Strava Giro-style elevation graph bookmarklet
View strava-giro-graph.js
var stravaOnSteroids = {
lengthMultiplierLarge : 0.001,
lengthMultiplierSmall : 1,
lengthUnitLarge:"km",
lengthUnitSmall:"m",
segName:'ride',
sections : [],
isRoute : false,
@mcdurdin
mcdurdin / kex_cryptoapi_cng.cpp
Last active Oct 29, 2019
RSA Key Exchange between CryptoAPI and CNG
View kex_cryptoapi_cng.cpp
/*
Example program to demonstrate sharing public keys from CryptoApi to CNG
Note: Reversing the process would allow sharing public keys from CNG to
CryptoApi. You would need to be careful of padding parameters and
versions.
License (yes, yes, BSD):
Copyright (c) 2013, Marc Durdin
You can’t perform that action at this time.