This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This Makefile is meant to be used by people that do not usually work | |
# with Go source code. If you know what GOPATH is then you probably | |
# don't need to bother with make. | |
.PHONY: gexp android ios gexp-cross swarm evm all test clean | |
.PHONY: gexp-linux gexp-linux-386 gexp-linux-amd64 gexp-linux-mips64 gexp-linux-mips64le | |
.PHONY: gexp-linux-arm gexp-linux-arm-5 gexp-linux-arm-6 gexp-linux-arm-7 gexp-linux-arm64 | |
.PHONY: gexp-darwin gexp-darwin-386 gexp-darwin-amd64 | |
.PHONY: gexp-windows gexp-windows-386 gexp-windows-amd64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | |
If you are running WSL2 on Windows 11 22H2 or higher, you can now use mirrored mode networking. | |
In your %USERPROFILE%\.wslconfig file in Windows (create it if it doesn't exist), add the line networkingMode=mirrored under [wsl2]. | |
Allow inbound connections through the Hyper-V firewall. This can be done by running one of the following commands in PowerShell with administrator privileges. | |
One port or range of ports: | |
```New-NetFirewallHyperVRule -DisplayName "WSL SSH" -Direction Inbound -VMCreatorId "{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}" -Protocol TCP -LocalPorts 22``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hardcore is more than just difficulty. | |
​ | |
Many players are familiar with the concept of a "hardcore game," but they don't always understand how it is embodied in game design and what tools are used to achieve this effect. Let's discuss how a game designer can design a hardcore gaming experience and what patterns and techniques can be utilized. In other words, let's examine the "design pattern for a hardcore gaming experience." | |
A **design pattern** is a general, frequently used solution to a commonly encountered problem in a given design context. | |
We will focus solely on the aspects of game design, excluding visual style, plot, music, and other game components. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"image" : "https://pbs.twimg.com/media/E-KV8UXWYAcVqoo?format=jpg", | |
"image_data" : "", | |
"external_url" : "https://www.twitter.com/chrisjfranko", | |
"description" : "The evolution of Christopher Franko", | |
"name" : "Christopher Franko", | |
"attributes": [ | |
{ | |
"trait_type": "Release", | |
"value": "Genesis" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"image" : "https://pbs.twimg.com/profile_images/1418923793624584206/CTBTrHKy_400x400.jpg", | |
"image_data" : "", | |
"external_url" : "https://www.twitter.com/chrisjfranko", | |
"description" : "Just A Picture of Christopher Franko", | |
"name" : "Christopher Franko", | |
"attributes": [ | |
{ | |
"trait_type": "Release", | |
"value": "Genesis" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install ipset | |
ipset create blacklist hash:ip hashsize 4096 && | |
iptables -I INPUT -m set --match-set blacklist src -j DROP && | |
iptables -I FORWARD -m set --match-set blacklist src -j DROP | |
ipset add blacklist 103.137.20.5 | |
ipset add blacklist 195.123.222.16 | |
ipset add blacklist 85.206.160.91 | |
ipset add blacklist 167.99.218.34 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity 0.6.12; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.2.0/contracts/token/ERC20/IERC20.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.2.0/contracts/token/ERC20/SafeERC20.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.2.0/contracts/math/SafeMath.sol"; | |
import "https://github.com/eggswap/eggswap/blob/master/contracts/uniswapv2/interfaces/IUniswapV2ERC20.sol"; | |
import "https://github.com/eggswap/eggswap/blob/master/contracts/uniswapv2/interfaces/IUniswapV2Pair.sol"; | |
import "https://github.com/eggswap/eggswap/blob/master/contracts/uniswapv2/interfaces/IUniswapV2Factory.sol"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity 0.6.12; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/SafeERC20.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol"; | |
import "https://github.com/eggswap/eggswap/blob/master/contracts/uniswapv2/interfaces/IUniswapV2ERC20.sol"; | |
import "https://github.com/eggswap/eggswap/blob/master/contracts/uniswapv2/interfaces/IUniswapV2Pair.sol"; | |
import "https://github.com/eggswap/eggswap/blob/master/contracts/uniswapv2/interfaces/IUniswapV2Factory.sol"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.6.2; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol"; | |
contract Token is ERC20 { | |
constructor () public ERC20("Token", "TKN") { | |
//_mint(msg.sender, 1000000 * (10 ** uint256(decimals()))); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity 0.6.12; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol"; | |
interface IChicken { | |
function burnToMint(address _user, uint256 _amount) external; | |
} |
NewerOlder