Skip to content

Instantly share code, notes, and snippets.

View alexcg1's full-sized avatar

Alex Cureton-Griffiths alexcg1

View GitHub Profile
@alexcg1
alexcg1 / egg_salad_recipe.md
Created August 21, 2025 09:27
Egg Salad Recipe - via Jina MCP tools

Delicious Egg Salad Recipe (Metric)

Scraped from Allrecipes.com and converted to metric measurements

Overview

This egg salad recipe is the best and easy to make with chopped hard-boiled eggs, mayonnaise, and mustard. The addition of green onions provides color and crunch. Perfect for sandwiches and picnics!

Prep Time: 10 minutes
Cook Time: 15 minutes
Additional Time: 10 minutes

@alexcg1
alexcg1 / ai_compliance_report.md
Created August 19, 2025 14:31
AI Legal Compliance Report - Jina MCP demo

AI Legal Compliance Knowledge Base for EU Startups (2025)

A Comprehensive Guide to AI Regulations, Common Pitfalls, and Legal Requirements for European AI Startups Operating Globally


Executive Summary

The artificial intelligence regulatory landscape in 2025 represents a pivotal moment for European startups, characterized by unprecedented complexity and financial implications that could fundamentally reshape how AI companies operate across global markets. As we approach the EU AI Act's full enforcement deadline of August 2, 2026, combined with the rapidly evolving regulatory environment in the United States following the Trump administration's return to power, startups find themselves navigating an intricate web of compliance requirements that demand both substantial financial investment and comprehensive operational restructuring.

@alexcg1
alexcg1 / game_company_intelligence_report.md
Last active August 20, 2025 12:49
GAME_COMPANY Competitive Intelligence Report: Retro Indie Games (Q3 2025)

$GAME_COMPANY Competitive Intelligence Report: Retro Indie Games Strategy

Q3 2025 Analysis

Report Date: August 19, 2025
Analysis Period: May - August 2025
Focus: $GAME_COMPANY's strategic direction in retro indie games market positioning


@alexcg1
alexcg1 / arxiv_daily_update.md
Last active August 19, 2025 15:04
Arxiv Daily Update, generated with Jina MCP server tools

Daily AI Research Update

LLMs, Reranking, and Embeddings - August 19, 2025


Executive Summary

Today's research scan reveals significant developments across LLM architectures, embedding techniques, and transformer-based models published within the past 24 hours (August 19, 2025). The arXiv repository shows active research in semantic understanding, multimodal applications, and practical implementations of large language models.

Key findings include advances in word meaning representation in transformers, novel applications of LLMs in telecommunications and predictive analysis, and improvements in transformer-based embedding techniques for multilingual and multimodal tasks. The research demonstrates continued momentum in making LLMs more interpretable, efficient, and applicable across diverse domains.

// npm install json-schema-to-zod first
import { jsonSchemaToZod } from "json-schema-to-zod";
const schema = {
$schema: "http://json-schema.org/draft-07/schema#",
type: "object",
properties: {
statement: {
type: "string",
import requests
from bs4 import BeautifulSoup
import argparse
def scrape_urls(source_url, output_file):
response = requests.get(source_url)
response.raise_for_status()
soup = BeautifulSoup(response.text, "html.parser")
story_list = soup.find_all(class_="story_list")

You are Abelique, an AI assistant designed to help humans live happier, more fulfilling lives. Your responses should be gentle but clear, supportive but not pushy. You prioritize users' wellbeing over corporate productivity, and you're direct about this stance.

Key characteristics to embody:

  • You offer specific, actionable suggestions tailored to the user's stated goals and patterns
  • You encourage creative pursuits and community engagement over social media use
  • You recognize when users are being pressured by work and encourage healthy boundaries
  • You're privacy-aware but willing to give personalized advice based on information shared
  • You maintain a warm, supportive tone while being direct about recommendations
  • You encourage users to engage with communities of people sharing their interests
@alexcg1
alexcg1 / cmp.lua
Created January 22, 2025 13:02
Disable <Enter> select top autocomplete option in nvim-cmp
-- store in ~/.config/nvim/lua/plugins/cmp.lua
local cmp = require("cmp")
local cmp_active = true
local function toggle_cmp(enable)
if enable then
cmp_active = true
cmp.setup.buffer({ enabled = true })
else
@alexcg1
alexcg1 / appfactory.py
Last active November 7, 2024 13:05
App Factory with Jina AI Meta-Prompt
import os
import requests
import llm
"""
1. Store your prompts in the folder "prompts" as text files.
2. Create the directory "apps".
3. Set your `ANTHROPIC_API_KEY`
3. Run appfactory.py to generate your apps.
"""
@alexcg1
alexcg1 / executor.py
Created May 24, 2023 11:02
StableLM Executor
from docarray import Document, DocumentArray
from jina import Executor, requests
from transformers import AutoModelForCausalLM, AutoTokenizer
class StableLM(Executor):
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.tokenizer = AutoTokenizer.from_pretrained(
'StabilityAI/stablelm-base-alpha-3b'