This file contains hidden or 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
| # Online Python compiler (interpreter) to run Python online. | |
| # Write Python 3 code in this online editor and run it. | |
| # LLM Failover router | |
| # Prvovider - OpenAI, Azure, Google, Anthropic, Cohere, HuggingFace | |
| # Configurable - | |
| # Ideal scenaria - 100% requests would goes to primary provider | |
| # when primary fails / degreaded state then 95% goes to secondary provider and 5% goes to primary provider for testing | |
| # when primary recovers then 100% goes to primary provider |
This file contains hidden or 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
| echo "Startup git bash" | |
| path_to_key = "" # Enter path of the key to add | |
| path_to_repo = "" # Enter path of repo to cd into | |
| cd "$path_to_repo" | |
| eval $(ssh-agent -s) # Starting up the ssh-agent |
This file contains hidden or 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
| #HILL CIPHER | |
| #include <bits/stdc++.h> | |
| using namespace std; | |
| vector<int> multiply(vector<vector<int>> mat,vector<int> vec){ | |
| vector<int> ans(vec.size(),0); | |
| for(int i=0;i<mat.size();i++){ | |
| for(int j=0;j<vec.size();j++){ | |
| ans[i] += mat[i][j]*vec[j]; | |
| } | |
| ans[i]%=26; |
This file contains hidden or 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
| 1. Find S | |
| import pandas as pd | |
| import numpy as np | |
| def train(X, y): | |
| # Create the most specific hypothesis | |
| hypothesis = [] | |
| for i in range(len(X[0])): | |
| hypothesis.append("null") |