Skip to content

Instantly share code, notes, and snippets.

View shopglobal's full-sized avatar
💻
deploying Electronero 2.0

⛓️INTERCHAINED ⚡Electronero Network ʕ•̫͡•ʔ-̫͡-ʕ•͓͡•ʔ-̫͡-ʕ•̫͡•ʔ-̫͡-ʔ shopglobal

💻
deploying Electronero 2.0
View GitHub Profile
@shopglobal
shopglobal / CryptoBookers.md
Last active September 27, 2024 17:02
Crypto Bookers

Business Proposal for Crypto Bookers

Executive Summary

Crypto Bookers is a cryptocurrency network based on Monero (XMR), designed to provide a secure, private, and decentralized platform for peer-to-peer transactions, bookings, and payments. Leveraging Monero's unique privacy features, Crypto Bookers aims to cater to a market that values financial anonymity and security, such as freelance professionals, small businesses, and consumers who seek privacy in their transactions.

Business Objectives

  • Launch a secure and private cryptocurrency network leveraging Monero's privacy-focused technology.
  • Develop an ecosystem that facilitates anonymous transactions, bookings, and payments across various industries.
@shopglobal
shopglobal / Fintech.md
Created September 3, 2024 19:20
Fun fun tech

To create a financial exchange platform using PHP and MySQL with a front end in PHP, HTML, and CSS, we'll build a simple structure that includes user registration and authentication, wallets, trading order books, and trade execution. Here is an overview of the steps required to create this platform:

1. Database Structure

You'll need to set up a MySQL database with the following tables:

  • Users: Store user information, including ID, username, password (hashed), email, etc.
  • Wallets: Store the balances of each user for different currencies.
  • Orders: Store active buy and sell orders placed by users.
  • Trades: Store executed trades between users.
  • Transactions: Track deposits, withdrawals, and fees.

To create a TRC-20 token on the Tron blockchain, you'll need to write a smart contract in Solidity that defines the behavior and properties of your token. Below is a basic example of a TRC-20 token contract. This contract includes the standard functions like transfer, approve, transferFrom, and allowance.

1. Set Up Your Development Environment

First, ensure you have the following:

  • TronLink Wallet: Installed and configured.
  • TronGrid API Key: Optional but recommended for better network interaction.
  • Truffle or Remix: A development framework for deploying your contract.

2. Basic TRC-20 Token Solidity Code

@shopglobal
shopglobal / EB101.md
Created August 26, 2024 19:39
Economics business

1. Identify Common Trends:

Economic Systems:

  • Mixed Economies: All four countries—Cuba, Norway, the United Kingdom, and Sweden—operate under mixed economies, where the government and private sector play significant roles. However, the degree of government involvement varies.
  • Welfare Systems: Norway, the UK, and Sweden share a commitment to strong social welfare systems, although they are more pronounced in Norway and Sweden. These systems provide social safety nets, healthcare, and education, funded by higher taxes.
  • Innovation and Infrastructure: Norway, the UK, and Sweden emphasize innovation, technological development, and strong infrastructure. This focus is integral to their economies, fostering business growth and attracting investment.

Government Involvement:

  • High Government Involvement: Norway and Sweden have significant government intervention, particularly in providing social services and regulating key industries. The UK also has government involvement, thoug
@shopglobal
shopglobal / Fisherman.md
Created August 24, 2024 23:00
Fishing charter

Creating an app to connect fishing charter boats with fishermen and people who want to rent fishing boats involves several key features and components. Here’s a high-level overview of how you might approach this:

1. Define Features

For Charter Boat Owners:

  • Profile Creation: Register and create profiles with boat details, pricing, and availability.
  • Booking Management: Manage bookings and schedules.
  • Reviews and Ratings: Receive and respond to reviews from customers.

For Fishermen/Boat Renters:

@shopglobal
shopglobal / Ico.md
Last active August 24, 2024 22:18
Ico

To code an ICO, you'll need to develop a smart contract for the token and an ICO smart contract that handles the sale. Here’s a basic example using Solidity for an ERC-20 token and a simple ICO contract:

ERC-20 Token Contract

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
@shopglobal
shopglobal / CoinSale.md
Last active August 24, 2024 21:17
Coin sale

To create a sacrifice campaign that accepts donations in BTC, XMR, and ETH using PHP for the API and HTML, CSS, and React Native for the front end, follow these steps:

Backend (PHP API)

  1. Set Up the Project:

    • Create a new PHP project.
    • Set up a database to track user donations, transactions, and their equivalent USD value.
  2. Integrate Cryptocurrency Payment Gateways:

    • Use libraries like BitPay for BTC, Monero Integrations for XMR, and Etherscan API for ETH.
  • Implement endpoints to generate deposit addresses for each currency and monitor transactions.
@shopglobal
shopglobal / OBExchange.md
Last active August 24, 2024 00:49
Order books exchange

Building a cryptocurrency exchange with features like order books, deposits in cryptocurrencies like Monero or Bitcoin, and integration with PHP and MySQL is a complex project. Below is an outline of how to approach this task and a basic example to get you started.

Creating comprehensive documentation for your cryptocurrency exchange is essential for both users and developers. Here’s a structured outline for the documentation:


Cryptocurrency Exchange Documentation

1. Introduction

@shopglobal
shopglobal / SCorp.md
Created August 23, 2024 23:04
S corp benefits

Filing as an S Corporation (S Corp) in the United States offers several benefits, especially for small to medium-sized businesses and entrepreneurs. Here’s a breakdown of the primary advantages:

1. Pass-Through Taxation

  • Avoids Double Taxation: Unlike a C Corporation, where income is taxed at both the corporate level and again at the individual level when distributed as dividends, an S Corp allows income, deductions, and credits to pass through directly to shareholders. This means only the individual shareholders are taxed, avoiding double taxation.
  • Lower Self-Employment Taxes: Shareholders who actively work in the business can take a portion of their income as a salary (subject to payroll taxes) and the remainder as a distribution, which is not subject to self-employment taxes. This can result in significant tax savings.

2. Liability Protection

  • Limited Liability: Similar to other corporation types, an S Corp provides its shareholders with limited liability protecti
@shopglobal
shopglobal / Outcomes.md
Last active August 23, 2024 14:45
Outcomes

Here’s how you can implement the game with PHP for the backend and React Native for the frontend:

Architecture Overview:

  1. Frontend (React Native):

    • User Interface: Built with React Native to be available on both iOS and Android.
    • API Integration: Communicates with the PHP backend using RESTful APIs.
  2. Backend (PHP):

    • API Development: Create RESTful APIs using PHP, possibly with a framework like Laravel or plain PHP.
    • Database: Use MySQL to store user data, scenarios, bets, and transactions.