Skip to content

Instantly share code, notes, and snippets.

Avatar

Ashish Banerjee innomon

View GitHub Profile
@innomon
innomon / GraphQl.g4
Last active Sep 10, 2019
GraphQl.g4 : modified type to dtype to resolve golang code generation
View GraphQl.g4
/*
The MIT License (MIT)
Copyright (c) 2015 Joseph T. McBride
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@innomon
innomon / poa-gas-burn.asciidoc
Created Dec 28, 2018
Please verify my assumption on Ethereum POA (clique) gas burning is correct?
View poa-gas-burn.asciidoc

POA Gas burn : code walk

I prepared this gist to confirm from the community if my assumption on Ethereum POA (clique) gas burning is correct?

From what I groked today in the ethereum go code, it appears that the gas used during the contract execution is burned, that is debited from the contract transaction submitter’s account but not credited to anyone.

Please see the code snippets below:

View ethlance-local.asciidoc
@innomon
innomon / bbz-storefront-refactor.asciidoc
Last active Jun 13, 2018
Open Source Refactoring Project
View bbz-storefront-refactor.asciidoc
@innomon
innomon / assignment-dapp-ui.asciidoc
Last active May 29, 2018
SprintUp S2018: Ethereum DApp UI Assignment
View assignment-dapp-ui.asciidoc
@innomon
innomon / project-gold-coin-eth-hyperledger.adoc
Created Mar 2, 2017
Proof-of-concept for Gold Backed Cryptocurrency Technology Demonstrator
View project-gold-coin-eth-hyperledger.adoc

Proof-of-concept for Gold Backed Cryptocurrency Technology Demonstrator

Here is a gist of the proposal for Proof-of-concept (POC) for Gold Backed Cryptocurrency Technology Demonstrator

Background

We Indians are obsessed with gold, while RBI (Reserve Bank of India) holds 557 tonne gold, we citizens hold 20,000 tonne gold! Must of this gold is in form of jewelry. Indian women hold jewelry as a form personal social security, in rare financial crisis, she uses this as a collateral for taking loans. Many, middle to low middle class families gives a small amount from the household savings, to the jeweler, and buys virtual units of gold. After a threshold, she gets it converted to gold ornaments.

Savings in form of gold ornaments is highly unproductive, as it shaves off up to 30% as making & conversion charges.

Post demonetization, Indian citizens are more aware of Digital transactions and use of e-wallets. Gold is available as an investment instrument in dematerialized form.

@innomon
innomon / serverless-aws-gc.adoc
Last active Feb 28, 2017
Serverless Architecture Stacks AWS vs Google
View serverless-aws-gc.adoc
View fib-benchmark.asciidoc

Lua v/s JavaScript

Based on lua benchmarks, I conducted my own tests.

Table 1. Benchmark Result
Program time

fib.go

0m0.068s

fib.c

0m0.076s