Skip to content

Instantly share code, notes, and snippets.

View developerfred's full-sized avatar
👓

codingsh developerfred

👓
View GitHub Profile
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreihmdivzi7gifk6k2hpbvb4r7escelrt4nhyhafgppjgefzwwdvvgi ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
/**
* @dev Withdraw function once timestamp has passed unlock time
*/
function () external payable {
assembly {
switch gt(timestamp, sload(0x01))
case 0 { revert(0, 0) }
case 1 {
switch call(gas, sload(0x00), balance(address), 0, 0, 0, 0)
@developerfred
developerfred / commands.md
Created June 11, 2020 19:40
Real-Time LockDrop
$ cargo build --release```
@developerfred
developerfred / CommitmentStorage.rs
Last active June 11, 2020 16:44
Plasm Network Doc - Source Code
// Commitment storage: Plapps address => Commitment Child Storage.
Commitment get(fn commitment): T::AccountId => Commitment;
decl_child_storage! {
Commitment {
// Single operator address: OperatorId
OperatorAddress get(fn operator_address): T::AccountId;
// Current block number of commitment chain: BlockNumber
CurrentBlock get(fn current_block): T::BlockNumber;
// History of Merkle Root
pragma solidity ^0.6.8;
import 'https://github.com/aave/aave-protocol/blob/master/contracts/configuration/LendingPoolAddressesProvider.sol'
import 'https://github.com/aave/aave-protocol/blob/master/contracts/lendingpool/LendingPool.sol'
import 'https://github.com/aave/aave-protocol/blob/master/contracts/flashloan/base/FlashLoanReceiverBase.sol'
contract Borrower is FlashLoanReceiverBase {
LendingPoolAddressesProvider provider;
address dai;
from urllib.parse import urlparse
def show_url(url):
url_data = urlparse(url)
path = url_data.path
remove_path = ["/channel/"]
for channel in remove_path:
id_channel = path.replace(channel, "")
rss_url = '[RSS](https://www.youtube.com/feeds/videos.xml?channel_id=' + id_channel + ')'
return rss_url

Keybase proof

I hereby claim:

  • I am developerfred on github.
  • I am codignsh (https://keybase.io/codignsh) on keybase.
  • I have a public key ASCMsKEiS7jl3EQ3FJjK74CGTwFRYtxNu7ONLUDECqZoEwo

To claim this, I am signing this object:

@developerfred
developerfred / realcodecamp-en.md
Created March 2, 2020 23:59
Real Code Camp - Plan

The problem There are currently thousands of developers starting their careers, not knowing where to start and to start this developer needs a large amount of available time and money to pay for courses that cost up to $ 11,000 a year. This is very expensive for a young person who is starting a career or for someone who is changing areas and migrating to a career in technology. The market is very heated and this gives rise to N platforms, frameworks, companies etc. But with all this information, the young man asks himself, "Where can I start? Do I need to study python? Do I need to study algorithms?"

We can focus on some important issues:

price language learning curve new languages. The solution

@developerfred
developerfred / fixed_#cta_buttton.css
Last active February 20, 2020 14:21
#cta_button - Gitcoin Quest
body.stage_3 #cta_button {
margin-top: 20%;
}
@developerfred
developerfred / install.md
Created February 14, 2020 09:06 — forked from derhuerst/install.md
Rust WASM setup on macOS (with fish shell)