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 Workflow | |
We want to closely monitor what gets merged down to `master` branches and keep | |
our commit history as clean as possible. To accomplish this we can employ a few best | |
practices to ensure we don't see large numbers of useless `merge` commits and in addition | |
to that it will keep the ordering of our commits with priority on merged work vs local | |
changes. | |
### Basic Assumptions |
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
// ================== | |
// Utility code start | |
// ================== | |
var Readable = require('stream').Readable; | |
var util = require('util'); | |
/** | |
* Stream which returns numbers in ascending sorted order. | |
* |
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 boto3 | |
client = boto3.client('ec2', region_name='us-east-1') | |
ec2_regions = [region['RegionName'] for region in client.describe_regions()['Regions']] | |
for region in ec2_regions: | |
conn = boto3.resource('ec2', region_name=region) | |
instances = conn.instances.filter() | |
ids = [] |
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 instructor | |
import time | |
from langchain_community.vectorstores import FAISS | |
from langchain_openai import OpenAIEmbeddings | |
from langchain.text_splitter import TokenTextSplitter | |
from langchain_community.document_loaders import UnstructuredURLLoader | |
from openai import OpenAI | |
from pydantic import BaseModel |
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 instructor | |
import time | |
from langchain_community.vectorstores import FAISS | |
from langchain_openai import OpenAIEmbeddings | |
from langchain.text_splitter import TokenTextSplitter | |
from langchain_community.document_loaders import UnstructuredURLLoader | |
from openai import OpenAI | |
from pydantic import BaseModel |