Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3rd party user creation test and 1% treaty ROI analysis, etc. #161

Merged
merged 20 commits into from
Mar 23, 2024
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
ec74b68
Add cost estimation and FAQ answering common questions
mikepsinn Mar 18, 2024
113c86b
Merge remote-tracking branch 'origin/develop' into develop
mikepsinn Mar 18, 2024
37d6d91
Add analysis, estimations, and examples of AI in medical progress
mikepsinn Mar 19, 2024
fbe9323
Add analysis, estimations, and examples of AI in medical progress
mikepsinn Mar 19, 2024
94bf023
User creation demo. `FDAiClient.js` to handle XMLHttpRequest and API …
mikepsinn Mar 19, 2024
56f500d
Merge remote-tracking branch 'origin/develop' into develop
mikepsinn Mar 19, 2024
fdfd2b2
Updated URL helpers in login and API calls
mikepsinn Mar 19, 2024
4598d7f
Logical proof and AI risk
mikepsinn Mar 21, 2024
22e47a8
Add post user method in openapi.yml
mikepsinn Mar 21, 2024
167fa7e
@nrwl modules have been updated to ^15.9.7. Additionally, some other …
mikepsinn Mar 21, 2024
750603b
Add proposal for VitaDAO's DIH initiative
mikepsinn Mar 21, 2024
1154111
Merge remote-tracking branch 'origin/develop' into develop
mikepsinn Mar 21, 2024
9c7db1b
Python script for military spending projections and existential risk …
mikepsinn Mar 22, 2024
6666246
Refactor military spending chart and enhance projections
mikepsinn Mar 22, 2024
9af0c34
Added 'requirements.txt' for dependencies, Code for creating the mili…
mikepsinn Mar 22, 2024
81b449f
Jupyter notebook to document the analysis interpretation and derivati…
mikepsinn Mar 23, 2024
3f41b00
Expand opportunity cost analysis and update VitaDAO proposal document
mikepsinn Mar 23, 2024
acc2c42
Integrate NIH funding data and add lobbying ROI analysis
mikepsinn Mar 23, 2024
387a7b5
Logical proof premises, propositions, proof, and counterarguments. Ad…
mikepsinn Mar 23, 2024
02abf6e
Merge branch 'FDA-AI:develop' into develop
mikepsinn Mar 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add analysis, estimations, and examples of AI in medical progress
This commit introduces a new document providing a detailed breakdown and analysis of the potential efficiency gains with AI in medical and scientific progress. This includes factors like working hours, knowledge sharing and access, elimination of redundant work, cognitive efficiency, and experimental iteration speed. Furthermore, it highlights examples of how current companies integrate AI in pharmaceutical advancements, demonstrating the transformative potential of AI technology in drug discovery and medical research. Roadmap and ROI documents are also updated with cost estimation and additional details.
  • Loading branch information
mikepsinn committed Mar 19, 2024
commit fbe93235522530083a4d2cd13644bcf97c0e2ab5
10 changes: 10 additions & 0 deletions apps/js-examples/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Environment variables declared in this file are automatically made available to Prisma.
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema

# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings

#DATABASE_URL="postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public"
DATABASE_URL="file:./your_db.sqlite"
FDAI_API_ORIGIN="https://safe.fdai.earth"

3 changes: 3 additions & 0 deletions apps/js-examples/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
# Keep environment variables out of version control
.env
43 changes: 43 additions & 0 deletions apps/js-examples/FDAiClient.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
const XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;

class FDAiClient {
constructor(clientId, clientSecret = "oauth_test_client_secret",
apiOrigin = "https://safe.fdai.earth") {
this.clientId = clientId;
this.clientSecret = clientSecret;
this.apiOrigin = apiOrigin;
}

apiCall(method, endpoint, data) {
return new Promise((resolve, reject) => {
const xhr = new XMLHttpRequest();
const url = `${this.apiOrigin}${endpoint}`;
xhr.open(method, url, true);
xhr.setRequestHeader("Content-type", "application/json");
xhr.setRequestHeader("X-Client-ID", this.clientId);
xhr.setRequestHeader("X-Client-Secret", this.clientSecret);
xhr.onload = () => {
if (xhr.status >= 200 && xhr.status < 400) {
resolve(JSON.parse(xhr.responseText));
} else {
reject(new Error(xhr.responseText));
}
};
xhr.onerror = () => {
reject(new Error("Network error"));
};
xhr.send(JSON.stringify(data));
});
}

createUser(clientUserId) {
const data = {
clientUserId: clientUserId,
clientId: this.clientId,
clientSecret: this.clientSecret
};
return this.apiCall("POST", "/api/v1/user", data);
}
}

module.exports = FDAiClient;
Loading