Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
exploring

Chetanya Chopra chetanyachopra

👨‍💻
exploring
View GitHub Profile
@chetanyachopra
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
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
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 : http://github.com/chetanyachopra
*/
/*A basic 3d vector Class */
#include<iostream>
You can’t perform that action at this time.