Use gemini -p for analyzing large codebases that exceed Claude's context limits.
Use @ syntax with paths relative to your working directory:
# Single file
gemini -p "@src/main.py Explain this file's purpose"| from langchain.llms.base import LLM | |
| from typing import Optional, List | |
| from revChatGPT.V1 import Chatbot | |
| class revChatGPT(LLM): | |
| chatbot: Chatbot = Chatbot(config={ | |
| "access_token": "<your token here>" | |
| }) |
| git clean -xfd | |
| git submodule foreach --recursive git clean -xfd | |
| git reset --hard | |
| git submodule foreach --recursive git reset --hard | |
| git submodule update --init --recursive |
| use std::env; | |
| use std::fs; | |
| // extern crate base64; | |
| // From the specification | |
| // https://docs.microsoft.com/en-us/onedrive/developer/code-snippets/quickxorhash | |
| // According to the spec, the block is "big-endian" | |
| type Block = [u8; 20]; // Intrinsically with Copy trait |
| override func viewDidAppear(_ animated: Bool) { | |
| view.window?.scaleFactor = 1.0 // Default value is 0.77 | |
| } | |
| extension UIWindow { | |
| var scaleFactor: CGFloat { | |
| get { | |
| Dynamic.NSApplication.sharedApplication | |
| .windows.firstObject.contentView | |
| .subviews.firstObject.scaleFactor ?? 1.0 |
This is a quick guide to install PostgreSQL 10 - tested on Ubuntu 16.04 but likely can be used for Ubuntu 14.04 and 17.04 as well, with one minor modification detailed below.
gem install pg: apt-get install libpq-dev