Skip to content

Instantly share code, notes, and snippets.

View kavania2002's full-sized avatar
👋

Kavan Gondalia kavania2002

👋
View GitHub Profile
@kavania2002
kavania2002 / Multiple TC C++ Boiler.snippets
Created June 10, 2022 12:09
Multiples Test Case CP C++ Template/Boiler
{
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
"CP Boiler Plate": {
"scope": "cpp",
@kavania2002
kavania2002 / finalCount.sol
Created March 27, 2022 11:20
Smart Contract file on the Final Count of Votes for Decentralized Voting System App - VoteChain
//SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;
contract FinalCount {
struct TotalPoll {
address pollAd;
uint leftCount;
uint rightCount;
}
@kavania2002
kavania2002 / voting.sol
Created March 27, 2022 11:16
Contract file for a Decentralized Voting System App - VoteChain
//SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;
contract Voting {
// struct for each proporsal
// struct defines datatype of each proposals
struct Info{
string name;
string description;