| name | explain-diff-html |
|---|---|
| description | Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output. |
Please make me a rich, interactive explanation of the specified code change.
It should have these sections:
| import argparse | |
| from datetime import date, timedelta | |
| from typing import TypedDict | |
| import requests | |
| from tabulate import tabulate | |
| class OpenAiUsageTool: | |
| ''' |
| #!/bin/bash | |
| # Credit for helping to outline the correct upgrade process goes to @tuxity and @GuidoDr | |
| ## | |
| ## Instructions | |
| ## | |
| # 1. Edit the variables below to match your environment. This uses default variables and assumes you're on 5.31.0. | |
| # If you're wanting to use another version of Postgres/Mattermost , update the variables as desired. |
| #!/usr/bin/env bash | |
| # Convenience script for setting up docker and docker-compose on Ubuntu. | |
| # Steps essentially copied and pasted from: | |
| # https://docs.docker.com/install/linux/docker-ce/ubuntu/ | |
| # https://docs.docker.com/compose/install/ | |
| # Uninstall any existing docker installations | |
| sudo apt-get remove docker docker-engine docker.io containerd runc |
| This gist I write, because I couldn't find any step by step instructions | |
| how to install and start postgresql locally (using conda within a conda environment - with the result | |
| that you can run it without sudo/admin rights on your machine!) | |
| and not globally in the operating system (which requires sudo/admin rights on that machine). | |
| I hope, this will help especially people new to postgresql | |
| (and those who don't have sudo/admin rights on a specific machine but want | |
| to run postgresql there)! | |
| Prerequisite is to have miniconda already installed in your Computer. |
| set shell=/bin/sh " fish friendly | |
| " | |
| " Base configuration from https://github.com/tpope/vim-sensible | |
| " | |
| if has('autocmd') | |
| filetype plugin indent on | |
| endif | |
| if has('syntax') && !exists('g:syntax_on') | |
| syntax enable | |
| endif |
| # Original by Daniel L. Greenwald | |
| # http://dlgreenwald.weebly.com/blog/capitalizing-titles-in-bibtex | |
| # Modified by Garrett Dash Nelson | |
| import re | |
| from titlecase import titlecase | |
| # Input and output files | |
| my_file = 'library.bibtex' | |
| new_file = 'library-capitalized.bibtex' # in case you don't want to overwrite |
| FROM centos:centos6 | |
| MAINTAINER jmorton@usgs.gov | |
| # Apache | |
| RUN yum install -y httpd httpd-devel | |
| RUN chkconfig httpd on | |
| RUN apachectl start | |
| # Dependencies | |
| RUN yum groupinstall -y "Development tools" |