Skip to content

Instantly share code, notes, and snippets.

@maestroh1git
maestroh1git / addmission_possibility.py
Created October 19, 2022 21:21
This snippet, takes user input to give suggestions based on a range of values
"""
create an admission program to calculate the aggregate score
AND TELL THE STUDENTS, THE FACULTY AND DEPARTMENT, HE OR SHE IS LIKELY TO BE ADMITTED TO
CRITERIA
DS - name, math_score, english_score, scores
0 - 49 -no admission
50 - 54 -agriculture DEPARTMENT
55 - 60 -botany
61 - 70 -psychology and statistics
@maestroh1git
maestroh1git / App.js
Created August 31, 2022 11:10 — forked from dabit3/App.js
Persisting a keypair for reading across clients
/*
* this file includes both a node.js script for creating a keypair
* as well as the client code for using it
*/
/* createKeypair.js */
const fs = require('fs')
const anchor = require("@project-serum/anchor");
const web3 = require('@solana/web3.js')
const account = anchor.web3.Keypair.generate();