Skip to content

Instantly share code, notes, and snippets.

View superXdev's full-sized avatar
🎯
Open to opportunities

Fikri Rudiansyah superXdev

🎯
Open to opportunities
View GitHub Profile
@superXdev
superXdev / setup.md
Last active October 31, 2024 12:20
Setup web server using Nginx in Ubuntu/Debian

Install PHP 8.3

sudo apt-get install software-properties-common  
  
sudo add-apt-repository ppa:ondrej/php  
  
sudo apt-get update
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// Interface for ERC20 token standard
interface IERC20 {
function balanceOf(address account) external view returns (uint256);
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// Interface for ERC20 token
interface ERC20 {
// Transfer tokens to a specified address
function transfer(address recipient, uint256 amount) external returns (bool);
// Get the balance of a specific address
function balanceOf(address account) external view returns (uint256);
<py-script> print('Hello PyScript!') </py-script>
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>