View cog-predictor-with-multiple-outputs.py
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
# https://github.com/replicate/cog/blob/main/docs/python.md#output | |
from cog import BasePredictor, BaseModel, File | |
class Output(BaseModel): | |
image: File | |
coords: str | |
class Predictor(BasePredictor): | |
def predict(self, source_image: Path = Input(description="Image in which to detect objects")) -> Path: |
View gist:8a78ad1712e5bdda46e61c99e889fa91
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
~/git/arxiv/arxiv-browse develop* | |
arxiv-browse $ pyenv install 3.6.15 | |
python-build: use openssl@1.1 from homebrew | |
python-build: use readline from homebrew | |
Installing Python-3.6.15... | |
python-build: use readline from homebrew | |
python-build: use zlib from xcode sdk | |
BUILD FAILED (OS X 11.5.2 using python-build 20180424) |
View possibilities.txt
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
baakha | |
baakhe | |
baakhi | |
baakho | |
baakhu | |
baekha | |
baekhe | |
baekhi | |
baekho | |
baekhu |
View copilot-powered.sql
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
# The predictions table is called models_prediction | |
# The users table is called users_user | |
# Select all predictions where the user id is equal to the user with username 'zeke' | |
SELECT * FROM models_prediction WHERE user_id = (SELECT id FROM users_user WHERE username = 'zeke'); | |
# Count all predictions where the user id is equal to the user with username 'zeke' | |
SELECT COUNT(*) FROM models_prediction WHERE user_id = (SELECT id FROM users_user WHERE username = 'zeke'); | |
View gettext_rails_i18n error
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
/vendor/gems/2.7.1/ruby/2.7.0/gems/zeitwerk-2.4.0/lib/zeitwerk/kernel.rb:34:in `require' | |
app/vendor/gems/2.7.1/ruby/2.7.0/gems/activesupport-7.0.0.alpha.9d34ed7/lib/active_support/dependencies.rb:332:in `block in require' | |
app/vendor/gems/2.7.1/ruby/2.7.0/gems/activesupport-7.0.0.alpha.9d34ed7/lib/active_support/dependencies.rb:299:in `load_dependency' | |
app/vendor/gems/2.7.1/ruby/2.7.0/gems/activesupport-7.0.0.alpha.9d34ed7/lib/active_support/dependencies.rb:332:in `require' | |
app/vendor/gems/2.7.1/ruby/2.7.0/gems/gettext_i18n_rails-1.8.1/lib/gettext_i18n_rails/tasks.rb:1:in `<top (required)>' | |
app/vendor/gems/2.7.1/ruby/2.7.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' | |
app/vendor/gems/2.7.1/ruby/2.7.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' | |
app/vendor/gems/2.7.1/ruby/2.7.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' | |
app/vendor/gems/2.7.1/ruby |
View accept-language-headers.js
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
[ | |
"*", | |
"bg-CZ,bg;q=0.9,en-CZ;q=0.8,en;q=0.7,cs-BG;q=0.6,cs;q=0.5,en-US;q=0.4,de;q=0.3", | |
"ca,en;q=0.9,es;q=0.8,fr;q=0.7", | |
"ca-es", | |
"cs", | |
"cs-CZ,cs;q=0.9,en;q=0.8,sk;q=0.7", | |
"de,en-US;q=0.7,en;q=0.3", | |
"de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7", | |
"de-DE,en-US;q=0.7,en;q=0.3", |
View erb.js
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
{ | |
// Place your snippets for erb here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
"render-pet": { | |
"prefix": "pet", | |
"body": [ | |
"<%= t(\"$1\") %>" |
View ink.txt
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
ink | |
inkberries | |
inkberry | |
inkblot | |
inkblots | |
inked | |
inker | |
inkers | |
inkholder | |
inkholders |
View inc.txt
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
incage | |
incaged | |
incages | |
incaging | |
incalculabilities | |
incalculability | |
incalculable | |
incalculably | |
incalescence | |
incalescences |
View npm-7-beta-installation-error.txt
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
$ npx recent-github-activity | |
Need to install the following packages: | |
recent-github-activity | |
Ok to proceed? (y) y | |
npm ERR! code ERESOLVE | |
npm ERR! unable to resolve dependency tree | |
npm ERR! A complete log of this run can be found in: |
NewerOlder