Skip to content

Instantly share code, notes, and snippets.

View gsthina's full-sized avatar
🏠
Working from home

G Surendar Thina gsthina

🏠
Working from home
View GitHub Profile
@gsthina
gsthina / Airdrop.sol
Created May 20, 2021 08:33
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.4.18+commit.9cf6e910.js&optimize=false&gist=
pragma solidity ^0.4.16;
interface High4Teens {
function transferFrom(address from, address to, uint tokens);
}
contract Airdrop {
High4Teens public token;
@gsthina
gsthina / Airdrop.sol
Created May 20, 2021 08:33
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.4.18+commit.9cf6e910.js&optimize=false&gist=
pragma solidity ^0.4.16;
interface High4Teens {
function transferFrom(address from, address to, uint tokens);
}
contract Airdrop {
High4Teens public token;
@gsthina
gsthina / Animal.sol
Created May 15, 2021 19:06
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.5.1;
import './Ownable.sol';
contract AnimalContract is Ownable{
event animalAdded(address owner, string animalName);
enum AnimalType {DOG, CAT}
@gsthina
gsthina / Animal.sol
Created May 13, 2021 09:25
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=true&gist=
pragma solidity 0.5.1;
import './Ownable.sol';
contract AnimalContract is Ownable{
event animalAdded(address owner, string animalName);
enum AnimalType {DOG, CAT}
@gsthina
gsthina / Animal.sol
Created May 12, 2021 10:29
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.5.1;
import './Ownable.sol';
contract AnimalContract is Ownable{
enum AnimalType {DOG, CAT}
struct Animal {
string name;
@gsthina
gsthina / country_list.js
Created December 28, 2018 04:55 — forked from incredimike/variousCountryListFormats.js
Country list as javascript array (alphabetical)
// List of all countries. The & character has been converted into & for you, in case you want to use this directly in HTML.
// Last updated June 11, 2018
var country_list = ["Afghanistan","Albania","Algeria","Andorra","Angola","Anguilla","Antigua & Barbuda","Argentina","Armenia","Aruba","Australia","Austria","Azerbaijan","Bahamas"
,"Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia","Bosnia & Herzegovina","Botswana","Brazil","British Virgin Islands"
,"Brunei","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Cayman Islands","Chad","Chile","China","Colombia","Congo","Cook Islands","Costa Rica"
,"Cote D Ivoire","Croatia","Cruise Ship","Cuba","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea"
,"Estonia","Ethiopia","Falkland Islands","Faroe Islands","Fiji","Finland","France","French Polynesia","French West Indies","Gabon","Gambia","Georgia",