Skip to content

Instantly share code, notes, and snippets.

@neshpat
neshpat / claude_3.5_sonnet_artifacts.xml
Created July 17, 2024 16:04 — forked from dedlim/claude_3.5_sonnet_artifacts.xml
Claude 3.5 Sonnet, Full Artifacts System Prompt
<artifacts_info>
The assistant can create and reference artifacts during conversations. Artifacts are for substantial, self-contained content that users might modify or reuse, displayed in a separate UI window for clarity.
# Good artifacts are...
- Substantial content (>15 lines)
- Content that the user is likely to modify, iterate on, or take ownership of
- Self-contained, complex content that can be understood on its own, without context from the conversation
- Content intended for eventual use outside the conversation (e.g., reports, emails, presentations)
- Content likely to be referenced or reused multiple times
@neshpat
neshpat / paas_list.md
Created July 14, 2024 17:33 — forked from pcgeek86/paas_list.md
Heroku Platform as a Service (PaaS) Alternatives with Docker Container Hosting

Open Source

  • Porter - Kubernetes powered PaaS that runs in your own cloud
  • Open Function - cloud-native open-source FaaS (Function as a Service) platform. website
  • CapRover - easy to use app/database deployment & web server manager
  • Tsuru - Open source and extensible Platform as a Service (PaaS) website
  • Kubero - free and self-hosted Heroku PaaS alternative for Kubernetes that implements GitOps
  • Dokku - docker-powered PaaS that helps you build and manage the lifecycle of applications
  • Piku - tiniest PaaS you've ever seen. Allows you to do git push deployments to your own servers.
@neshpat
neshpat / web_scraping.py
Created March 7, 2023 11:56 — forked from thatguynef/web_scraping.py
Part 2: Scraping data with Python BeautifulSoup to ChatGPT API
# Youtube video: https://youtu.be/dwCe9l_geK4
import requests
import json
import os
import unicodedata
from bs4 import BeautifulSoup
urls = ['https://www.bigbearcoolcabins.com/big-bear-cabin-rentals/moonridge-cali-bear-cabin/',
'https://www.bigbearcoolcabins.com/big-bear-cabin-rentals/switzerland',
"https://www.bigbearcoolcabins.com/big-bear-cabin-rentals/pines"
@neshpat
neshpat / oxygen-repeater-dynamic-query.php
Created December 24, 2020 16:50 — forked from yankiara/oxygen-repeater-dynamic-query.php
Use dynamic queries with Oxygen's repeater
/*
* Example of related posts repeater for any CPT with taxonomy:
* - Filter query to prevent altering queries inside the repeater items,
* - Retrieve post category slug : I have only one for each post, so I just take first element.
* (You might need to add error tests, of course, if you don't accept empty results,
* for instance if you forgot to set post category.)
* - Set tax_query arg with category slug
* - Set random order
* - Exclude current post
* - Deactivate pagination