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
function exportDocUsingAdvancedApi() { | |
// Получаем ID текущего документа | |
var docId = DocumentApp.getActiveDocument().getId(); | |
// Используем Advanced Drive API | |
var drive = Drive.Files; | |
try { | |
// Получаем метаданные файла | |
var file = drive.get(docId, { |
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
<!DOCTYPE html> | |
<html lang="ru"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Title</title> | |
<meta name="description" content=""> |
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 | |
// функция date по-русски | |
// http://gavnokod.com/vyivod-date-php-na-russkom/ | |
function rus_date() { | |
// Перевод | |
$translate = array( | |
"am" => "дп", | |
"pm" => "пп", | |
"AM" => "ДП", | |
"PM" => "ПП", |
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
<!-- вывод правильного года создания сайта | |
https://github.com/tarik817/tricks/blob/master/footer.php --> | |
<footer> | |
<?php | |
$text = 'Kostiuk Taras'; | |
$startYear = '2010'; | |
$thisYear = date('Y'); | |
if ($startYear == $thisYear) { | |
echo "<p>© $thisYear $text</p>"; | |
} else { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<!-- https://www.youtube.com/watch?v=PnTiwcHM828 --> | |
<button onclick="myLocation()"> Click to get Location </button> | |
<p id="myloc"></p> |
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
Show hidden characters
[ | |
{ "keys": ["ctrl+k", "ctrl+i"], "command": "gist" }, | |
{ "keys": ["ctrl+k", "ctrl+p"], "command": "gist_private" }, | |
{ "keys": ["ctrl+k", "ctrl+s"], "command": "gist_update_file" }, | |
{ "keys": ["ctrl+k", "ctrl+o"], "command": "gist_list" }, | |
{ "keys": ["ctrl+k", "ctrl+["], "command": "insert_gist_list" }, | |
{ "keys": ["ctrl+k", "ctrl+]"], "command": "gist_add_file" } | |
] |