Skip to content

Instantly share code, notes, and snippets.

@MervinPraison
MervinPraison / claude_3.5_sonnet_artifacts.xml
Created July 10, 2024 12:00 — 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
@MervinPraison
MervinPraison / PaliGemma.ipynb
Created May 23, 2024 21:29
PaliGemma Inference
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MervinPraison
MervinPraison / MidiCodeFrequencies.plist
Created February 4, 2022 11:12 — forked from mjaSanJose/MidiCodeFrequencies.plist
Find Guitar notes using an Iterator
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>MidiCode</key>
<array>
<integer>21</integer>
<integer>22</integer>
<integer>23</integer>
<integer>24</integer>
@MervinPraison
MervinPraison / gist:dcd5f640069f0cc8423c3385f2f5ba3e
Created January 21, 2022 22:17 — forked from aaronshaf/gist:7461620
Mounce Concise Greek-English Dictionary of the New Testament (released with attribution by permission)
Mounce Concise Greek-English Dictionary
of the
New Testament
edited by William D. Mounce
with Rick D. Bennett, Jr.
Introduction
This dictionary includes all the Greek words that occur in the standard Greek New Testament, and is organized in alphabetic Greek order. The first line of each entry includes the G/K and Strong’s number. Strong’s numbers followed by a lowercase letter (a, b, etc.) represent forms not included in the original Strong’s system that were modified to conform to modern editions of the Greek New Testament. This same system is employed in the various Key Number tagged texts in Accordance such as the ESV, NRSV, HCSB, and NKJV. Following this are the Greek word, its transliteration, and its frequency count is also included with a hyperlink to this form in the Greek New Testament in Accordance. On the second line are the English definition, and for all words occuring 10x or less, each Scripture reference is included. The third line includes a series of Word Study Hyperlinks which search the
@MervinPraison
MervinPraison / README.md
Created September 28, 2021 07:55 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@MervinPraison
MervinPraison / .dockerignore
Created January 29, 2021 00:31 — forked from ekandreas/.dockerignore
Dockerize Roots Bedrock WP w ES
vendor
dist
web/app/mu-plugins/*/
!web/app/mu-plugins/bedrock-autoloader.php
!web/app/mu-plugins/disallow-indexing.php
!web/app/mu-plugins/register-theme-directory.php
web/app/plugins/*/
web/wp
web/app/db.php
@MervinPraison
MervinPraison / .dockerignore
Created January 29, 2021 00:28 — forked from ekandreas/.dockerignore
Dockerize your WordPress Bedrock
*
!docker.conf
{"openapi":"3.0.2","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/":{"get":{"summary":"Read Root","operationId":"read_root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/items/{item_id}":{"get":{"summary":"Read Item","operationId":"read_item_items__item_id__get","parameters":[{"required":true,"schema":{"title":"Item Id","type":"integer"},"name":"item_id","in":"path"},{"required":false,"schema":{"title":"Q","type":"string"},"name":"q","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Item","operationId":"update_item_items__item_id__put","parameters":[{"required":true,"schema":{"title":"Item Id","type":"integer"},"name":"item_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/comp
@MervinPraison
MervinPraison / Update-feature-branch.md
Created October 14, 2019 17:19
Updating a feature branch

Updating a feature branch

First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)

$ git checkout master

Fetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master

@MervinPraison
MervinPraison / driver.py
Created September 30, 2019 10:59
Ads Detector
from flask import Flask
import time
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import unittest
from selenium.webdriver.common.keys import Keys
import argparse
import json
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as ec