Skip to content

Instantly share code, notes, and snippets.

View bbpatil's full-sized avatar

Basavaraj Patil bbpatil

View GitHub Profile
@bbpatil
bbpatil / ns2-olsr-ubuntu-xenial.md
Created October 16, 2021 15:01 — forked from slashsbin/ns2-olsr-ubuntu-xenial.md
Install & Setup NS2(w/ UM-OLSR Patch) on Ubuntu 16.04

Upgrade Ubuntu

sudo apt update
sudo apt upgrade -Vy

Download NS2

Download NS2 & OLSR:

@bbpatil
bbpatil / blockchain.md
Created August 1, 2020 15:11 — forked from kwichmann/blockchain.md
Blockchain and Ethereum resources
Solidity lets you program on Ethereum, a blockchain-based virtual machine that allows the creation and execution of smart contracts, without needing centralized or trusted parties.
Solidity is a statically typed, contract programming language that has similarities to Javascript and C. Like objects in OOP, each contract contains state variables, functions, and common data types. Contract-specific features include modifier (guard) clauses, event notifiers for listeners, and custom global variables.
Some Ethereum contract examples include crowdfunding, voting, and blind auctions.
As Solidity and Ethereum are under active development, experimental or beta features are explicitly marked, and subject to change. Pull requests welcome.
// First, a simple Bank contract
// Allows deposits, withdrawals, and balance checks
// simple_bank.sol (note .sol extension)
/* **** START EXAMPLE **** */