Theme Basics is a series of tutorial notes on building a Blogger theme.
Discover tips and learn how to start building your own Blogger theme:
- Minimum code requirements.
- Basic templates.
- Tags & Data definitions.
- Resources and examples.
<!-- [ Meta Tag SEO ] --> | |
<include expiration='7d' path='*.css'/> | |
<include expiration='7d' path='*.js'/> | |
<include expiration='3d' path='*.gif'/> | |
<include expiration='3d' path='*.jpeg'/> | |
<include expiration='3d' path='*.jpg'/> | |
<include expiration='3d' path='*.png'/> | |
<meta content='sat, 02 jun 2020 00:00:00 GMT' http-equiv='expires'/> | |
<meta charset='utf-8'/> | |
<meta content='width=device-width, initial-scale=1' name='viewport'/> |
An example that shows the difference between creating a JavaScript class and subclass in ES5 and ES6.
import speech_recognition | |
import pyttsx | |
speech_engine = pyttsx.init('sapi5') # see http://pyttsx.readthedocs.org/en/latest/engine.html#pyttsx.init | |
speech_engine.setProperty('rate', 150) | |
def speak(text): | |
speech_engine.say(text) | |
speech_engine.runAndWait() |
#!/bin/bash | |
# update apt-get | |
export DEBIAN_FRONTEND="noninteractive" | |
sudo apt-get update | |
# remove previously installed Docker | |
sudo apt-get purge lxc-docker* | |
sudo apt-get purge docker.io* |
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
#AND | |
<b:if cond='data:blog.pageType == "index"'> | |
<b:if cond='data:blog.searchQuery'> | |
<!--search_page AND index_page--> | |
</b:if> | |
</b:if> | |
#OR |
Press minus + shift + s
and return
to chop/fold long lines!
mkdir ~/app-root/data/tmp | |
mysqldump -h $OPENSHIFT_MYSQL_DB_HOST -P ${OPENSHIFT_MYSQL_DB_PORT:-3306} -u ${OPENSHIFT_MYSQL_DB_USERNAME:-'admin'} --password="$OPENSHIFT_MYSQL_DB_PASSWORD" --all-databases > ~/app-root/data/tmp//all.sql |
<?php # -*- coding: utf-8 -*- | |
/** | |
* Plugin Name: T5 Page Feed | |
* Description: Adds a feed for pages at <code>/feed/?post_type=page</code>. | |
* Version: 2012.05.22 | |
* Author: Thomas Scholz | |
* Author URI: http://toscho.de | |
* License: MIT | |
* License URI: http://www.opensource.org/licenses/mit-license.php | |
*/ |