Skip to content

Instantly share code, notes, and snippets.

@varunsahni18
varunsahni18 / .deps...remix-tests...remix_accounts.sol
Created May 1, 2022 09:00
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: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
library TestsAccounts {
function getAccount(uint index) pure public returns (address) {
address[15] memory accounts;
accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4;
accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2;
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(
home: MyApp(),
));
}
String billAmount = "", tipPer = "";
@varunsahni18
varunsahni18 / main.dart
Created January 29, 2021 19:32
Christmas tree
void main() {
for (int j = 0; j <= 6; j++) {
print(' '*(10-j) + '*' * (2*j-1));
}
for (int j = 4; j <= 6; j++) {
print(' '*(10-j) + '*' * (2*j-1));
}
for (int j = 4; j <= 6; j++) {
print(' '*(10-j) + '*' * (2*j-1));
}