Skip to content

Instantly share code, notes, and snippets.


Chetanya Chopra chetanyachopra

View GitHub Profile
chetanyachopra / 1_Storage.sol
Created Dec 21, 2020
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at
View 1_Storage.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.8.0;
* @title Storage
* @dev Store & retrieve value in a variable
contract Storage {
chetanyachopra / lottery.sol
Last active Sep 8, 2020
A distributted and open lottery Smart Contract on ethereum which ensures total transparency in Lottery Systems which ensures trust in this Lottery Scheme
View lottery.sol
pragma solidity ^0.4.17;
contract Lottery {
address public manager;
address[] public players;
function Lottery() public {
manager = msg.sender;
chetanyachopra / FindFunctionDef.cpp
Last active Feb 20, 2018
FindfunctionDef finds the defination of function and returns the line number
View FindFunctionDef.cpp
FindFunctionDef finds function defination in a source code and returns its line number
#include <iostream>
#include <string.h>
using namespace std;
unsigned int FindFunctionDefn(char* strFunctionName, char* strSourceCode ) {
//getting position of function defination
chetanyachopra / 3DVector.cpp
Last active Feb 20, 2018
Vector3D class contains basic functionality like adding, subtracting, dot product, cross product
View 3DVector.cpp
Coded by Chetanya Chopra
github :
/*A basic 3d vector Class */