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
let pancakeSwapAbi = [ | |
{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"getAmountsOut","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"}, | |
]; | |
let tokenAbi = [ | |
{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}, | |
]; | |
const Web3 = require('web3'); | |
/* | |
Required Node.js |
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
#!/bin/sh | |
PHP_MSSQL_DRIVERS=Ubuntu18-7.3 | |
PHP_MSSQL_RELEASE=5.6.1 | |
# Download and extract phpmysql drivers | |
sudo wget "https://github.com/Microsoft/msphpsql/releases/download/v${PHP_MSSQL_RELEASE}/${PHP_MSSQL_DRIVERS}.tar" -O - | tar -x | |
# Change Directory | |
cd $PHP_MSSQL_DRIVERS |
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
""" | |
Updated for discord.py 1.0.x / Rewrite | |
Original credit goes to Vexs | |
""" | |
import discord | |
import asyncio | |
import re | |
from discord.ext import commands | |
import sys |
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
"id","groupId","name","handle","context","instructions","translatable","type","settings","dateCreated","dateUpdated","uid" | |
1,1,"Body","body","global","",0,"Matrix","{\"maxBlocks\":null}","2015-05-26 04:01:59","2015-06-04 14:14:26","f8c4fcfa-a054-4bca-8098-6f6572b536b6" | |
3,NULL,"Heading","heading","matrixBlockType:1","",0,"PlainText","{\"placeholder\":\"\",\"maxLength\":\"\",\"multiline\":\"\",\"initialRows\":\"4\"}","2015-05-27 10:18:33","2015-06-04 14:14:26","f3b2f9f2-e8ec-4261-95ee-7eb0f8994ac7" | |
4,NULL,"Text","text","matrixBlockType:1","",0,"RichText","{\"configFile\":\"\",\"cleanupHtml\":\"1\",\"purifyHtml\":\"\",\"columnType\":\"mediumtext\"}","2015-05-27 10:18:33","2015-06-04 14:14:26","9c3e5114-9edf-453f-9372-166f28e59eb3" | |
5,NULL,"Image","image","matrixBlockType:1","",0,"Assets","{\"useSingleFolder\":\"\",\"sources\":\"*\",\"defaultUploadLocationSource\":\"1\",\"defaultUploadLocationSubpath\":\"\",\"singleUploadLocationSource\":\"1\",\"singleUploadLocationSubpath\":\"\",\"restrictFiles\":\"1\",\"allowedK |
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
{% macro error_block(errors) %} | |
{% if errors %} | |
<span class="help-block"> | |
<ul> | |
{% for err in errors %} | |
<li>{{ err }}</li> | |
{% endfor %} | |
</ul> | |
</span> | |
{% endif %} |