Skip to content

Instantly share code, notes, and snippets.

View simone-coelho's full-sized avatar

Simone Coelho simone-coelho

View GitHub Profile
@simone-coelho
simone-coelho / jwks.json
Created October 9, 2025 20:34
MCP Dev JWKS - PR37
{
"keys": [
{
"kty": "RSA",
"n": "r5mOwI5_I246lnbsGme8byMRen0jVuHV8yTgVdCsBSFQrLtWVxF3bSAQOtOjGiygvIqCIyMtVYl_zKxNpM2tMuUI_gcaoTisBraRhxASb74qbkOe6scYDsBqNOANPrkO05UhnMgOzKidszUG-8JX6Y2faTTUJlMT3ZZ27Id9td58MwAWUKdHmHUuWo5nTQF4Sje3cmsb1Ubu0w2XfzU-cC8SOnxE36Y7c2-8FcuZp81MOrNO2uytfXtWgF7pSFfcWbvgGNpBzJmUC_Nh_Um6vaAiIbURV6b-SVHeQSCr-zWdWPSGyfErxvyeuKXUGX17zWJyfDvzf-nJWG2jTUbOVw",
"e": "AQAB",
"kid": "ce2cca4f-37a8-44c3-9c76-47f9cf5f2991",
"use": "sig",
"alg": "RS256"
}
@simone-coelho
simone-coelho / jwks-clean.json
Last active October 5, 2025 22:12
Test JWKS for MCP Admin Prompts API
{"keys":[{"kty":"RSA","n":"2RvOzxbn-4i41qvaETDTKJnoiZpf_33XcqKoRbWkW09N3kVhDDVMX7XBuGqdckI-13qlv2ko4HaQVvpB5W7-fdqGOxZ8vq_thBMVg_UNWCCMhOqVzDAdoi09Z8Hp4Z3iRdhAHdrGAmSe25k0ZeEIWRQjex41yZolOCT1w9g9n365mRJYnIiHnxNAd49DC1_y8KHJLZ3x3yzEe33QSPB9icJpc6iJT18TBJ0wuaB15aJgFzz-y9edpeCEGUNhWwGFOoi2sVVIpzShUod5kKqHvVSzEgD-hJuZcIDcOP-_csPypZc-WqltCD0gbuWwYOPDWHg331es7NOwfqgvOZdt7Q","e":"AQAB","use":"sig","alg":"RS256","kid":"ce2cca4f-37a8-44c3-9c76-47f9cf5f2991"}]}

Client Slideout Modal Template - Documentation

📋 Overview

This template creates a customizable slideout modal that appears from the left or right side of the page. It features dynamic content, styling options, dual buttons, and comprehensive tracking capabilities.

✨ Simplified Design: This template has been streamlined with a single background color option for ease of use, removing complex split-color functionality that wasn't specified in the original requirements.

🎯 Features

@simone-coelho
simone-coelho / client-slideout-template-documentation.md
Last active June 13, 2025 17:02
DirectTV Client Slideout Modal Template - Optimizely Extension with Documentation

Client Slideout Modal Template - Documentation

📋 Overview

This template creates a customizable slideout modal that appears from the left or right side of the page. It features dynamic content, styling options, dual buttons, and comprehensive tracking capabilities.

✨ Simplified Design: This template has been streamlined with a single background color option for ease of use, removing complex split-color functionality that wasn't specified in the original requirements.

🎯 Features

import UIKit
// Import the Optimizely iOS SDK for Feature Experimentation
// import Optimizely
class CarouselViewController: UIViewController {
// MARK: - Properties
// Replace this with the real OptimizelyClient initialization
let optimizelyClient = OptimizelyClient(sdkKey: "YOUR_SDK_KEY")
import UIKit
// Import the Optimizely iOS SDK for Feature Experimentation
// import Optimizely
class CarouselViewController: UIViewController {
// MARK: - Properties
// Replace this with the real OptimizelyClient initialization
let optimizelyClient = OptimizelyClient(sdkKey: "YOUR_SDK_KEY")
const axios = require('axios');
/**
* Maps mParticle event data to Optimizely's Full Stack event format
* @param {MParticleEvent} mpEvent - The mParticle event object
* @param {Array} eventMap - List of events with their corresponding IDs
* @returns {OptimizelyEvent} Formatted Optimizely event payload
*/
function createOptimizelyPayload(mpEvent, eventMap) {
if (!mpEvent?.data?.custom_event_type) {
@simone-coelho
simone-coelho / bucketing_script.js
Last active September 17, 2021 18:49 — forked from thegreekjester/bucketing_script.js
Bucketing script given input CSV
/*
Install required libraries:
- yargs (CLI)
- fast-csv (csv parser and writer)
- @optimizely/optimizely-sdk (optimizely SDK)
The following script takes in the following CLI arguments:
sdkKey (str): SDK Key of Optimizely datafile you wish to use
csv_file_path (str): The input CSV relative path with the following columns --> "User Identifier", "Bucketing ID",
@simone-coelho
simone-coelho / experiment.ts
Created April 19, 2021 23:39 — forked from athal7/experiment.ts
2u lambda edge implementation
import optimizely from '@optimizely/optimizely-sdk'
import optimizelyLogging from '@optimizely/optimizely-sdk/lib/plugins/logger'
import optimizelyEnums from '@optimizely/optimizely-sdk/lib/utils/enums'
import cookie from 'cookie'
import rp from 'request-promise'
import uuidv4 from 'uuid/v4'
import {
Callback,
Handler,
CloudFrontRequest,
let axios = require("axios");
let argv = require("yargs").argv;
let s3 = require("@auth0/s3");
let fs = require("fs");
let path = require("path");
// let parquet = require('node-parquet');
let appDir = path.dirname(require.main.filename);
let decisionsFiles = [];
let eventsFiles = [];
//require('s3-upload-resume');