This file contains hidden or 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
| // SPDX-License-Identifier: MIT | |
| pragma solidity 0.8.0; | |
| import "@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol"; | |
| import "@openzeppelin/contracts-upgradeable/utils/cryptography/draft-EIP712Upgradeable.sol"; | |
| import "../libs/fota/MerkelProof.sol"; | |
| contract TheAirdropDistributor is EIP712Upgradeable { |
This file contains hidden or 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.5.17; | |
| import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; | |
| import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
| import "@openzeppelin/contracts/token/ERC20/ERC20Burnable.sol"; | |
| import "@openzeppelin/contracts/ownership/Ownable.sol"; | |
| import './interfaces/IUniswapV2Router01.sol'; | |
| contract IERC20Burnable is IERC20 { |
This file contains hidden or 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
| // golang p2p udp client | |
| package main | |
| import ( | |
| "fmt" | |
| "net" | |
| "log" | |
| "encoding/binary" | |
| "encoding/hex" |
This file contains hidden or 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
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "net" | |
| "net/http" | |
| "os" | |
| "os/exec" | |
| "os/signal" |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "text/template" | |
| ) | |
| type Person struct { | |
| Name string |
This file contains hidden or 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
| if _, err := os.Stat("/path/to/whatever"); os.IsNotExist(err) { | |
| // path/to/whatever does not exist | |
| } | |
| if _, err := os.Stat("/path/to/whatever"); err == nil { | |
| // path/to/whatever exists | |
| } |
This file contains hidden or 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
| <?php | |
| /* | |
| OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP) | |
| Author: _ck_ (with contributions by GK, stasilok) | |
| Version: 0.1.7 | |
| Free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
| * revision history | |
| 0.1.7 2015-09-01 regex fix for PHP7 phpinfo | |
| 0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter |
This file contains hidden or 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
| // <![CDATA[ | |
| var langCodes = { | |
| "af": "Afrikaans", | |
| "sq": "Albanian", | |
| "ar": "Arabic (Standard)", | |
| "ar-dz": "Arabic (Algeria)", | |
| "ar-bh": "Arabic (Bahrain)", | |
| "ar-eg": "Arabic (Egypt)", | |
| "ar-iq": "Arabic (Iraq)", | |
| "ar-jo": "Arabic (Jordan)", |
This file contains hidden or 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
| // 更新: | |
| // 05.27: 1、保证回调执行顺序:error > ready > load;2、回调函数this指向img本身 | |
| // 04-02: 1、增加图片完全加载后的回调 2、提高性能 | |
| /** | |
| * 图片头数据加载就绪事件 - 更快获取图片尺寸 | |
| * @version 2011.05.27 | |
| * @author TangBin(PS:我不是作者,我只是代码的搬运工) | |
| * @see http://www.planeart.cn/?p=1121 | |
| * @param {String} 图片路径 |
This file contains hidden or 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
| <?php | |
| // Use in the "Post-Receive URLs" section of your GitHub repo. | |
| if ( $_POST['payload'] ) { | |
| shell_exec( 'cd /srv/www/git-repo/ && git reset --hard HEAD && git pull' ); | |
| } | |
| ?>hi |
NewerOlder