swapnil blog code