Skip to content

Instantly share code, notes, and snippets.

View geolffreym's full-sized avatar
🏠
Working from home

Geolffrey Mena geolffreym

🏠
Working from home
View GitHub Profile
@geolffreym
geolffreym / .md
Created January 17, 2025 17:46
Comprehensive Analysis: YouTube vs. Watchit

Comprehensive Analysis: YouTube vs. Watchit


Operating Costs and Profitability

Platform Gross Revenue (per content) Retention/Operating Cost (%) Total Operating Costs Creator Earnings % Earnings for Creator
YouTube $10,000 45% $4,500 $5,500 55%
Watchit $10,000 5% $500 $9,500 95%
@geolffreym
geolffreym / mmc.flattened.sol
Created November 7, 2024 21:37
mmc.flattened.sol
// SPDX-License-Identifier: MIT
pragma solidity =0.8.26 ^0.8.20;
// node_modules/@openzeppelin/contracts/governance/utils/IVotes.sol
// OpenZeppelin Contracts (last updated v5.0.0) (governance/utils/IVotes.sol)
/**
* @dev Common interface for {ERC20Votes}, {ERC721Votes}, and other {Votes}-enabled contracts.
*/
@geolffreym
geolffreym / Percolation.java
Last active October 15, 2021 13:48
Quick-Find Percolation
package DynamicConnection.example;
import DynamicConnection.WeightedQuickUnion;
public class Percolation {
private enum States {
CLOSE,
OPEN
}
private final int N;
function db.oplog.values.hashes () {
local host
local dbAddr
host=${2:-${ORBIT_DB_HOST}}
dbAddr=$(rawurlencode "${1}")
_curl "${host}/db/${dbAddr}/oplog/values" | jsawk "'return this.hash'" -a "'return this.join(\" \")'"