Skip to content

Instantly share code, notes, and snippets.

View liamaharon's full-sized avatar
🦀

Liam Aharon liamaharon

🦀
View GitHub Profile
@xlc
xlc / ideas.md
Last active February 2, 2024 12:31
Polkadot Project Ideas
View ideas.md

Polkadot Project Ideas

If you are looking to build something on Polkadot ecosystem but don't know where to start, here is a list of the ideas that I would love to see them implemented.

If you actually start building one of those, or are already building something similar, please reach out to me and I can help you with mentoring & technical support (either from myself, someone from Acala team, or connect you to Parity or other ecosystem teams) and funding support (Polkadot Treasury, Kusama Treasury, W3F grant, Acala grant, other ecosystem grant).

If you have other ideas, please comment below and I can add it to the list.

Note that many teams are already working on various important common good library and tools such as generic multichain transaction history service so I will refrain to list those to avoid potential duplicated works.

@miguelmota
miguelmota / build_create2_address.js
Created November 17, 2018 06:28
JavaScript build ethereum create2 address (counterfactual smart contract address)
View build_create2_address.js
function buildCreate2Address(creatorAddress, saltHex, byteCode) {
const parts = [
'ff',
creatorAddress.slice(2),
saltHex.slice(2),
web3.utils.sha3(byteCode).slice(2),
]
const partsHash = web3.utils.sha3(`0x${parts.join('')}`)
return `0x${partsHash.slice(-40)}`.toLowerCase()
View tiny-url-api.php
<?php
echo file_get_contents('http://tinyurl.com/api-create.php?url='.'http://www.example.com/');
/* For example
http://tinyurl.com/api-create.php?url=http://www.fullondesign.co.uk/
Would return:
http://tinyurl.com/d4px9f
*/
?>