Skip to content

Instantly share code, notes, and snippets.

View venu-stack's full-sized avatar

Venu Borra venu-stack

View GitHub Profile
@venu-stack
venu-stack / playground.rs
Created February 26, 2025 07:44 — forked from rust-play/playground.rs
Code shared from the Rust Playground
use std::io;
fn patterns()->i32{
println!("please enter your age:");
let mut age = String::new();
io::stdin().read_line(&mut age).expect("invalid input");
let age_num:i32=match age.trim().parse(){
Ok(num)=>num,
Err(_)=>{
println!("no input");
@venu-stack
venu-stack / contracts...MyToken.sol
Created September 11, 2021 05:27
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.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
//SPDX-License-Identifier-MIT
pragma solidity ^ 0.8.4;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
@venu-stack
venu-stack / contracts...MyMultiSig.sol
Created September 9, 2021 08: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.0+commit.1d4f565a.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.3;
contract MyMultiSig{
event Deposit(address indexed sender,uint amount,uint balance);
event SubmitTransaction (
address indexed owner,
uint indexed txIndex,
address indexed to,
uint value,