Skip to content

Instantly share code, notes, and snippets.

View fanbyprinciple's full-sized avatar
🙀
Out on an adventure !

Ashwin Jayaprakash fanbyprinciple

🙀
Out on an adventure !
View GitHub Profile
@fanbyprinciple
fanbyprinciple / undo_git.md
Last active January 18, 2023 05:15
How to undo a commit on github

Reset it to previous commit -

git reset --hard HEAD^

Force a push -

git push --force

@fanbyprinciple
fanbyprinciple / mudit.sol
Created December 6, 2023 14:39
mudmdumud
contracts/MyDAO.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
contract MyDAO {
mapping(address => uint256) private _balances;
mapping(address => bool) private _hasInitialized;
uint256 public specialTokens = 6000;
uint256 public nextProposalId;
mapping(uint256 => Proposal) public proposals;
@fanbyprinciple
fanbyprinciple / index.html
Created February 4, 2024 15:11
Love gif idea
<p id="q" class="question">Will you be my valentine, Devu ?</p>
<div class="button-container">
<img id="panda" src="https://media.tenor.com/LxTbPto0fdoAAAAM/bubu-rose-bubu-sweet.gif">
<div class="button-container">
<button id="yesButton" class="btn">Yes</button>
<button id="noButton" class="btn btn-no">No</button>
</div>
</div>
@fanbyprinciple
fanbyprinciple / send_post.py
Last active January 15, 2025 06:42
Python code for POST request
import requests
data = "hi"
response = requests.post("https://httpbin.org/post",
data=json.dumps(data)
headers={"Content-import requests
import json
data = {