sudo su
to be logged in as the root user
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
{ | |
"$metadata": { | |
"uris": { | |
"jsonLdContext": "https://gist.githubusercontent.com/aditya-vijaykumar/3b59e3b344dcd66b969d8b06c48e36bb/raw/7a9129846604adb38b24375b1ab8c8d6977d6adc/ArtemisDaoMembershipCredential.jsonld" | |
}, | |
"version": "1.0", | |
"type": "ArtemisDaoMembershipCredential" | |
}, | |
"$schema": "https://json-schema.org/draft/2020-12/schema", | |
"description": "Artemis DAO Membership Credential to prove user's vote balance of a DAO.", |
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
{ | |
"@context": [ | |
{ | |
"@protected": true, | |
"@version": 1.1, | |
"id": "@id", | |
"type": "@type", | |
"ArtemisDaoMembershipCredential": { | |
"@context": { | |
"@propagate": true, |
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
//SPDX-License-Identifier: Unlicense | |
pragma solidity ^0.8.0; | |
import "@routerprotocol/router-crosstalk/contracts/RouterCrossTalk.sol"; | |
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
interface PlutusNFTContract { | |
function mint(address _user, string memory _pValue, uint256 _blockNumber) external; | |
function updateNFT(address _user, string memory _pValue, uint256 _blockNumber) external; | |
} |
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
from collections import defaultdict | |
class PriorityQueue(object): | |
def __init__(self): | |
self.queue = [] | |
def __str__(self): | |
return ' '.join([str(i) for i in self.queue]) | |
# for checking if the queue is empty |
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
CREATE TABLE DOCTORS( MLICENSE VARCHAR(10) PRIMARY KEY, FNAME VARCHAR(20) NOT NULL, LNAME VARCHAR(20) NOT NULL, EMAIL VARCHAR(50) UNIQUE NOT NULL, QUALIFICATIONS VARCHAR(255), AGE INT, GENDER CHAR(1), SPECIALIZATION VARCHAR(255), ABOUT VARCHAR(255)); | |
CREATE TABLE DOCTORS_LOGIN(EMAIL VARCHAR(50) UNIQUE REFERENCES DOCTORS(EMAIL) ON DELETE CASCADE, PASSWORD VARCHAR(16)); | |
CREATE TABLE PATIENTS( PATIENT_ID INT PRIMARY KEY AUTO_INCREMENT, FNAME VARCHAR(20) NOT NULL, LNAME VARCHAR(20) NOT NULL, EMAIL VARCHAR(50) UNIQUE NOT NULL, BLOOD_GROUP VARCHAR(6), GENDER CHAR(1), AGE INT, HEIGHT INT, WEIGHT INT, ALLERGIES VARCHAR(255)); | |
ALTER TABLE PATIENTS AUTO_INCREMENT = 4490; | |
CREATE TABLE PATIENTS_LOGIN(EMAIL VARCHAR(50) UNIQUE REFERENCES PATIENTS(EMAIL) ON DELETE CASCADE, PASSWORD VARCHAR(16)); | |
CREATE TABLE HEALTH_RECORDS(RECORD_NO INT PRIMARY KEY AUTO_INCREMENT, CREATE_DATE DATE, SYMPTOMS VARCHAR(255), MED_CONDITION VARCHAR(255), DIAGNOSIS VARCHAR(1000), MEDICATION VARCHAR(255)); |
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 { | |
ThreeIdConnect, | |
EthereumAuthProvider, | |
} from "3id-connect"; | |
import Ceramic from "@ceramicnetwork/http-client"; | |
import { IDX } from "@ceramicstudio/idx"; | |
import web3Modal from "../utils/provider.js"; |
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
#include<stdio.h> | |
#include<stdlib.h> | |
#include<string.h> | |
typedef struct node | |
{ | |
char name[25]; | |
struct node *link; | |
}name; |
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
#include <iostream> | |
using namespace std; | |
class Shape { | |
protected: double areaValue; | |
public: | |
virtual void area() = 0; | |
}; | |
class Triangle: public Shape { |
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
const express = require('express'); | |
const mongoose = require('mongoose'); | |
const session = require('express-session'); | |
//Express app init | |
const app = express(); | |
// DB Config | |
const db = 'mongodb://localhost:27017/test'; |
NewerOlder