create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
""" | |
A simple proxy server. Usage: | |
http://hostname:port/p/(URL to be proxied, minus protocol) | |
For example: | |
http://localhost:8080/p/www.google.com | |
""" |
This Gist presents a new design of class-based object construction in ES6 that does not require use of the two-phase @@create protocol.
One of the characteristics of this proposal is that subclass constructors must explicitly super invoke their superclass's constructor if they wish to use the base class' object allocation and initialization logic.
An alternative version of this design automatically invokes the base constructor in most situations.
To use this program, put your Twitter OAuth credentials in ~/.config/twitter/oauth.json
(or customize this path in tw-init.py
). oauth.json
should look like
{
"consumer_key": "...",
"consumer_secret": "...",
"access_token": "...",
"access_token_secret": "..."
}
See tw-init.py -h
for usage. There are several external dependencies:
1033edge.com | |
11mail.com | |
123.com | |
123box.net | |
123india.com | |
123mail.cl | |
123qwe.co.uk | |
150ml.com | |
15meg4free.com | |
163.com |
# Adapted from the example here: https://jira.mongodb.org/browse/PYTHON-735 | |
# to work with pymongo 3.0 | |
import pymongo | |
from pymongo.cursor import CursorType | |
c = pymongo.MongoClient() | |
# Uncomment this for master/slave. | |
oplog = c.local.oplog['$main'] |
process.env.APP_ID | |
process.env.APP_MONGO | |
process.env.AUTOUPDATE_VERSION | |
process.env.BIND_IP | |
process.env.CONSTRAINT_SOLVER_BENCHMARK | |
process.env.DDP_DEFAULT_CONNECTION_URL | |
process.env.DEPLOY_DOMAIN | |
process.env.DEPLOY_HOSTNAME | |
process.env.DISABLE_WEBSOCKETS | |
process.env.DISCOVERY_PORT |
If you hate git submodule
, then you may want to give git subtree
a try.
When you want to use a subtree, you add the subtree to an existing repository where the subtree is a reference to another repository url and branch/tag. This add
command adds all the code and files into the main repository locally; it's not just a reference to a remote repo.
When you stage and commit files for the main repo, it will add all of the remote files in the same operation. The subtree checkout will pull all the files in one pass, so there is no need to try and connect to another repo to get the portion of subtree files, because they were already included in the main repo.
Let's say you already have a git repository with at least one commit. You can add another repository into this respository like this:
import { BaseLLM } from 'langchain/llms' | |
import { CallbackManager } from 'langchain/callbacks' | |
import { LLMResult } from 'langchain/schema' | |
import { encoding_for_model, TiktokenModel } from '@dqbd/tiktoken' | |
export class AzureLLM extends BaseLLM { | |
name = 'AzureLLM' | |
batchSize = 20 | |
temperature: number | |
concurrency?: number |
"""This is an example of how to use async langchain with fastapi and return a streaming response. | |
The latest version of Langchain has improved its compatibility with asynchronous FastAPI, | |
making it easier to implement streaming functionality in your applications. | |
""" | |
import asyncio | |
import os | |
from typing import AsyncIterable, Awaitable | |
import uvicorn | |
from dotenv import load_dotenv |