Skip to content

Instantly share code, notes, and snippets.

View afrasiyabhaider's full-sized avatar
:electron:
Focusing on Goal

Afrasiyab Haider afrasiyabhaider

:electron:
Focusing on Goal
View GitHub Profile
@afrasiyabhaider
afrasiyabhaider / .deps...remix-tests...remix_accounts.sol
Created November 18, 2024 21:12
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.26+commit.8a97fa7a.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;
@afrasiyabhaider
afrasiyabhaider / NQueen.cpp
Created December 22, 2019 13:41 — forked from shahrajat/NQueen.cpp
Solving N Queen using Genetic Algorithm.
/*
Author : @Rajat Shah
Task: Solving N Queen using Genetic Algorithm.
Comments: Hard coded for 8x8 chess, can be modified for arbitrary size.
*/
#include<iostream>
#include<cmath>
#include<cstdlib>
#include<algorithm>