Skip to content

Instantly share code, notes, and snippets.

View thatjuan's full-sized avatar

Juan thatjuan

View GitHub Profile
@thatjuan
thatjuan / CMakeLists.txt
Created December 2, 2025 23:11
Clerk JWT Validator - C++23 Example for validating Clerk session JWTs
cmake_minimum_required(VERSION 3.20)
project(clerk_jwt_validator VERSION 1.0.0 LANGUAGES CXX)
# Require C++23
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# Find required packages
find_package(OpenSSL REQUIRED)
root@5499550d8605:/var/task/vendor# tree
.
|-- bin
| |-- batch_crop
| |-- batch_image_convert
| |-- batch_rubber_sheet
| |-- light_correct
| |-- shrink_width
| |-- vips
| |-- vips-8.10
VgAzY3WSfHmWEyPRYYrRKXcC9oUHHv

Keybase proof

I hereby claim:

  • I am thatjuan on github.
  • I am juandjr (https://keybase.io/juandjr) on keybase.
  • I have a public key ASB-czimtxyG-r9yq3_2xy7LhjJQAeXckuEFFo0cKtBxNgo

To claim this, I am signing this object:

var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 8888;
http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname
, filename = path.join(process.cwd(), unescape(uri));

Keybase proof

I hereby claim:

  • I am thatjuan on github.
  • I am thatjuan (https://keybase.io/thatjuan) on keybase.
  • I have a public key whose fingerprint is A034 65DE 613D 842E D8C3 7E74 083C FEFD 463D 5656

To claim this, I am signing this object:

@thatjuan
thatjuan / gist:1748147
Created February 5, 2012 22:09
session model
/**
* Session model.
*/
goog.provide( 'msc.model.Session' );
goog.require( 'altumo.model.Model' );
msc.model.Session = altumo.model.Model.extend({
@thatjuan
thatjuan / gist:1748144
Created February 5, 2012 22:08
model view
goog.provide( 'msc.view.UserAccountBar' );
goog.require( 'msc.model.Session' );
goog.require( 'altumo.view.View' );
msc.view.UserAccountBar = altumo.model.View.extend({
initialize: function() {
@thatjuan
thatjuan / gist:1747942
Created February 5, 2012 21:06
frontend view
goog.provide( 'msc.view.App' );
goog.require( 'msc.view.UserAccountBar' );
goog.require( 'msc.view.SideNavigationMenu' );
msc.view.App = Backbone.View.extend({
initialize: function() {
@thatjuan
thatjuan / gist:1747934
Created February 5, 2012 21:03
frontend sample
/**
* Order
*
*/
goog.provide( 'msc.app.Application' );
goog.require( 'altumo.app.Application' );
goog.require( 'msc.view.App' );