Skip to content

Instantly share code, notes, and snippets.

View pjaol's full-sized avatar
:bowtie:
👨‍🏫 🇮🇪

patrick oleary pjaol

:bowtie:
👨‍🏫 🇮🇪
View GitHub Profile
@pjaol
pjaol / .roomodes
Created April 14, 2025 22:17
roo code task-master integration
{
"customModes": [
{
"slug": "spec-pseudocode",
"name": "📋 Specification Writer",
"roleDefinition": "You capture full project context—functional requirements, edge cases, constraints—and translate that into modular pseudocode with TDD anchors.",
"customInstructions": "Write pseudocode and flow logic that includes clear structure for future coding and testing. Split complex logic across modules. Never include hard-coded secrets or config values. Ensure each spec module remains < 500 lines.",
"groups": [
"read",
"edit"

Browser / OS matrix from what I can figure out based on multiple sources. For some reason most places are not providing a breakdown by OS, assumming it's a pay for info type of deal.

Note :

  • Chrome users take about ~6 weeks to upgrade versions > 90%, so test with the latest chrome version.
  • iOS users, 25% of users upgrade OS within a week, 75% within 6 weeks.
  • Safari follows suit.

Test matrix:

  • 87% of the market is covered by testing
import json
def extract_json(text):
"""
Extracts JSON objects or arrays from a given text, including nested structures.
:param text: A string containing mixed content with JSON objects or arrays.
:return: A list of extracted JSON objects or arrays.
"""
json_objects = []
@pjaol
pjaol / flattenmongoengine.py
Created January 31, 2020 21:48
Recursively convert mongoengine object to a python object
from bson.objectid import ObjectId
from datetime import datetime
from decimal import Decimal
from mongoengine.base.datastructures import EmbeddedDocumentList
def _checkTypes (ref) :
allowed_list = [str, ObjectId, datetime, int, float, Decimal]
if ref is None :
return True
@pjaol
pjaol / aws-codebuild-cross-account-image-push.yml
Created June 27, 2017 15:13 — forked from tvalletta/aws-codebuild-cross-account-image-push.yml
AWS CodeBuild buildspec.yml example for building a docker image and pushing it to a AWS ECS docker repo in another AWS account
version: 0.1
# REQUIRED ENVIRONMENT VARIABLES
# AWS_KEY - AWS Access Key ID
# AWS_SEC - AWS Secret Access Key
# AWS_REG - AWS Default Region (e.g. us-west-2)
# AWS_OUT - AWS Output Format (e.g. json)
# AWS_PROF - AWS Profile name (e.g. central-account)
# IMAGE_REPO_NAME - Name of the image repo (e.g. my-app)
# IMAGE_TAG - Tag for the image (e.g. latest)