Aider v0.8.3
/Users/dan/.pyenv/versions/3.10.9/bin/aider DOCS.md src/index.ts src/utils/db.ts src/utils/stripe.ts prisma/schema.prisma
Model: gpt-4
Git repo: .git
Repo-map: universal-ctags using 1024 tokens
Added DOCS.md to the chat.
Added prisma/schema.prisma to the chat.
Added src/index.ts to the chat.
Added src/utils/db.ts to the chat.
Added src/utils/stripe.ts to the chat.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { T_IO_STATE } from '@interval/sdk/dist/ioSchema' | |
export default class CursorPagination { | |
cursors: string[] = [] | |
lastOffset: number = 0 | |
lastQueryTerm: string | undefined | |
lastSortColumn: string | undefined | |
lastSortDirection: string | undefined | |
update(newState: T_IO_STATE<'DISPLAY_TABLE'>) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"refreshPaths": [ | |
"/", | |
"/quote-pictures/", | |
"/pages/", | |
"/posts/", | |
"/latest/", | |
"/quotes/tv/", | |
"/quotes/tv/page/2/", | |
"/quotes/tv/page/3/", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// update view count for a post | |
function update_post_views($postID=0) { | |
$view_count = get_post_meta($postID, '_view_count', true); | |
if(!$view_count) $view_count = 0; | |
update_post_meta($postID, '_view_count', $view_count+1); | |
} | |
// usage within loop: | |
<?php update_post_views($post->ID); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="feature_slider"> | |
<div class="slide" id="slide-1"> | |
<div class="header_item"></div> | |
<img> | |
</div> | |
<div class="slide" id="slide-2"> | |
<div class="header_item"></div> | |
<img> | |
</div> | |
<div class="slide" id="slide-3"> |