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
| import os | |
| from typing import TypedDict | |
| from dotenv import load_dotenv | |
| import deepeval | |
| from deepeval.integrations.langchain import CallbackHandler | |
| from langgraph.graph import StateGraph | |
| from langchain_core.tools import tool | |
| load_dotenv() | |
| deepeval.login_with_confident_api_key(os.getenv("CONFIDENT_AI_API_KEY")) |
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
| m = [ | |
| [0, 0, 1, 0, 0, 1], | |
| [0, 0, 0, 0, 0, 1], | |
| [0, 0, 0, 0, 0, 0], | |
| [1, 0, 1, 0, 1, 1], | |
| [0, 1, 1, 0, 0, 0], | |
| [0, 0, 0, 0, 0, 0] | |
| ] | |
| def topological_sort(m) | |
| vertex = {} |
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
| m = [ | |
| [0, 0, 1, 0, 0, 1], | |
| [0, 0, 0, 0, 0, 1], | |
| [0, 0, 0, 0, 0, 0], | |
| [1, 0, 1, 0, 1, 1], | |
| [0, 1, 1, 0, 0, 0], | |
| [0, 0, 0, 0, 0, 0] | |
| ] | |
| def check_for_transitivity(m): |
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
| import numpy as np | |
| def is_matrix_asym(m): | |
| return np.multiply(m, m.T).max() == 0 | |
| def is_matrix_transit(m1): | |
| return ((np.dot(m1, m1)> 0) <= (m1 > 0)).min() | |
| s = 0 | |
| for i0 in [0,1]: |
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
| #!/bin/sh | |
| echo "Provisioning success" $1 $2 $3 |
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
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |