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
/** | |
* Retrieves all the rows in the active spreadsheet that contain data and logs the | |
* values for each row. | |
* For more information on using the Spreadsheet API, see | |
* https://developers.google.com/apps-script/service_spreadsheet | |
*/ | |
function readRows() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var rows = sheet.getDataRange(); | |
var numRows = rows.getNumRows(); |
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 add-apt-repository ppa:ondrej/php -y | |
sudo apt-get update -y | |
sudo apt-get install php7.1-curl php7.1-cli php7.1-dev php7.1-gd php7.1-intl php7.1-mcrypt php7.1-json php7.1-mysql php7.1-opcache php7.1-bcmath php7.1-mbstring php7.1-soap php7.1-xml php7.1-zip -y | |
sudo mv /etc/apache2/envvars /etc/apache2/envvars.bak | |
sudo apt-get remove libapache2-mod-php5 -y | |
sudo apt-get install libapache2-mod-php7.1 -y | |
sudo cp /etc/apache2/envvars.bak /etc/apache2/envvars |
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
<?php | |
if ($_SERVER["REQUEST_METHOD"] == "POST") { | |
if (!empty($_POST['name']) && !empty($_POST['phone'])){ | |
if (isset($_POST['name'])) { | |
if (!empty($_POST['name'])){ | |
$uname = strip_tags($_POST['name']); | |
$unameFieldset = "Имя:%20"; | |
} | |
} | |
if (isset($_POST['phone'])) { |
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
<form enctype="multipart/form-data" method="post"> | |
<b>Файл для отправки:</b> | |
<input type="file" name="document"> | |
<input type="hidden" name="MAX_FILE_SIZE" value="50000000" /> | |
<input type="submit" value="Отправить"> | |
</form> | |
<?php //Send file Telegram | |
$caption = "Caption for file"; | |
$url = "https://api.telegram.org/botToken/sendDocument"; |
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
// store/index.js | |
const createStore = () => { | |
return new Vuex.Store({ | |
state: { | |
counter: 0, | |
repos: [] | |
}, | |
actions: { | |
LOAD_REPOS: function({ commit }) { | |
axios.get('url').then((res) => { |
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
/* Module */ | |
var mpaginate = (function(app){ | |
var defaultOptions = { | |
perPage : 10, | |
page : 1, | |
limit : 10, | |
ellipsis : '…', | |
edges : 2 |
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
html { | |
font-size: 3vw; | |
margin: .5em; | |
} | |
body { | |
font-family: -apple-system, | |
BlinkMacSystemFont, | |
"Segoe UI", | |
Roboto, | |
Oxygen-Sans, |
NewerOlder