Skip to content

Instantly share code, notes, and snippets.

Open Innovation and Development

Kumar Anirudha anistark

Open Innovation and Development
View GitHub Profile
anistark / Escrow-Smart-Contract
Last active Mar 28, 2018 — forked from ToJen/Escrow-Smart-Contract
Example of an escrow smart contract
View Escrow-Smart-Contract
// package.json
"dependencies": {
"web3": "0.20.0",
"solc": "^0.4.19"
//Create file Ecrow.sol and create 3 variables: a buyer, a seller, and an arbiter
contract Escrow {

Keybase proof

I hereby claim:

  • I am anistark on github.
  • I am anistark ( on keybase.
  • I have a public key whose fingerprint is F52A 2B82 4FCF AF89 4919 969F 9815 4C1D F248 5F26

To claim this, I am signing this object:

anistark /
Created Sep 20, 2017 — forked from cobyism/
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).


Git Tagging

Annotated Tags

git tag -a v1.4 -m 'my version 1.4'

Lightweight Tags git tag v1.4-lw Tagging Later

anistark /
Last active Aug 22, 2017
PAPER Outline



System Model

Service Properties

The Algorithm

anistark / blind_auction.sol
Last active Jul 2, 2017
Solidity Contracts
View blind_auction.sol
pragma solidity ^0.4.11;
contract BlindAuction {
struct Bid {
bytes32 blindedBid;
uint deposit;
address public beneficiary;
uint public auctionStart;
anistark /
Created May 29, 2017
Using external config file


Using external config file

Beneficial because it's keeping tasks DRY and config.json can be used by another task runner, like grunt.

anistark /
Created Mar 21, 2017 — forked from kevinSuttle/
List of Usable HTML Meta and Link Tags

Copied from

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
def password_strength(password):
Verify the strength of 'password'
Returns a dict indicating the wrong criteria
A password is considered strong if:
8 characters length or more
1 digit or more
1 symbol or more
1 uppercase letter or more
1 lowercase letter or more

Setting Up Basic NodeJs Server with Postgres

sudo apt-get update
sudo apt-get install vim tree tmux npm git

Node v12
curl -sL | sudo -E bash -
sudo apt-get install -y nodejs