Skip to content

Instantly share code, notes, and snippets.

View Shritesh99's full-sized avatar
👨‍💻
Developing Great Things

Shritesh Jamulkar Shritesh99

👨‍💻
Developing Great Things
View GitHub Profile
@Shritesh99
Shritesh99 / contracts...1_Storage.sol
Created July 16, 2021 05:43
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.4+commit.c7e474f2.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Storage
* @dev Store & retrieve value in a variable
*/
contract Storage {
@Shritesh99
Shritesh99 / Rahul.sol
Created December 22, 2020 16:42
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.7.4+commit.3f05b770.js&optimize=false&runs=200&gist=
pragma solidity >=0.7.0 <0.8.0;
contract Rahul {
struct PoliceStation{
uint id;
}
struct Police{
address addr;
uint station;
@Shritesh99
Shritesh99 / Lua_Parser_Interepreter.lua
Last active July 19, 2022 18:01
Lua Parser+Interpreter for a given Grammer Defination.
--[[
A simple Lua Parser + Interpreter using
LPegLabel(https://github.com/sqmedeiros/lpeglabel)
with an error recovery mechanism for the following
grammer.
Program -> (Cmd | Exp)*
Cmd -> var = Exp
Exp -> Exp + Term | Exp - Term | Term
Term -> Term * Factor | Term / Factor | Factor
@Shritesh99
Shritesh99 / ballot.sol
Created February 26, 2019 16:40
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.1+commit.c8a2cb62.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.6.0;
// Solidity Version 0.4.22 <0.6.0
// 0xbc848c44a72D878aA935CccFe3e307c4e2DB0146 head
// 0x3184b6541c82fAa56B9d2360E2953d89f1Db8d82 Chairperson
// Election contract
contract Elections{
///////////////////////////////////////////////////////////////////////////////////////
@Shritesh99
Shritesh99 / ballot.sol
Created February 25, 2019 06:44
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.1+commit.c8a2cb62.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.6.0;
// Solidity Version 0.4.22 <0.6.0
// 0xbc848c44a72D878aA935CccFe3e307c4e2DB0146 head
// 0x3184b6541c82fAa56B9d2360E2953d89f1Db8d82 Chairperson
// Election contract
contract Elections{
///////////////////////////////////////////////////////////////////////////////////////
"""
Techinical Intern Basic Test - Imgtranslate.com
There are 3 zip files hosted at http://staging.imgtranslate.com:9999/ with names a.zip b.zip and c.zip.
They each contain text files with sentences on new lines.
You are required to write a program that:
1. Downloads them
2. Unzips them
@Shritesh99
Shritesh99 / ballot.sol
Created January 15, 2019 07:13
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.2+commit.1df8f40c.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.6.0;
// Solidity Version 0.4.22 <0.6.0
// 0xbc848c44a72D878aA935CccFe3e307c4e2DB0146 head
// 0x3184b6541c82fAa56B9d2360E2953d89f1Db8d82 Chairperson
// Election contract
contract Elections{
///////////////////////////////////////////////////////////////////////////////////////
@Shritesh99
Shritesh99 / ballot.sol
Created January 15, 2019 07:02
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.2+commit.1df8f40c.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.6.0;
// Solidity Version 0.4.22 <0.6.0
// 0xbc848c44a72D878aA935CccFe3e307c4e2DB0146 head
// 0x3184b6541c82fAa56B9d2360E2953d89f1Db8d82 Chairperson
// Election contract
contract Elections{
///////////////////////////////////////////////////////////////////////////////////////
@Shritesh99
Shritesh99 / ballot.sol
Last active January 14, 2019 14:48
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=undefined&optimize=false&gist=
pragma solidity >=0.4.22 <0.6.0;
// Solidity Version 0.4.22 <0.6.0
// 0xbc848c44a72D878aA935CccFe3e307c4e2DB0146 head
// 0x3184b6541c82fAa56B9d2360E2953d89f1Db8d82 Chairperson
// Election contract
contract Elections{
///////////////////////////////////////////////////////////////////////////////////////
@Shritesh99
Shritesh99 / ballot.sol
Created January 13, 2019 22:15
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.2+commit.1df8f40c.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.6.0;
// Solidity Version 0.4.22 <0.6.0
// Election contract
contract Elections{
// Events
event AddedParty(uint id);
event PartyVotes(uint votes);