3 hidden CSS tips
1. Use empty-cells to style table empty cells:
Surprisingly the browser support is quite good and extends back to IE8. Convenient to give less visual predominance to empty cells.
table {
empty-cells: hide;
}| #!/bin/bash | |
| echo "=============================================" | |
| echo "== Telegram Script Installer ==" | |
| echo "== ==" | |
| echo "== for www.LinuxRussia.com ==" | |
| echo "=============================================" | |
| echo "Downloading necesary files..." | |
| cd /tmp |
| # FROM debian:jessie | |
| FROM php:5.6-apache | |
| MAINTAINER Preston Tighe | |
| ## Install | |
| RUN apt-get update | |
| # Apache server name | |
| RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf |
| import re | |
| # RFC 4122 states that the characters should be output as lowercase, but | |
| # that input is case-insensitive. When validating input strings, | |
| # include re.I or re.IGNORECASE per below: | |
| def _create_pattern(version): | |
| return re.compile( | |
| ( | |
| '[a-f0-9]{8}-' + |
git log --oneline -1 <PR-BRANCH>git push -f origin :| ### Generic Dockerfile demonstrating good practices | |
| ### Imports | |
| # Bad-ish, we do not need Ubuntu for this, nor do we want latest if we are using in a build system, predictable is better | |
| FROM ubuntu:latest | |
| # Better, using a small image since our app has no dependency on Ubuntu | |
| FROM alpine:3.3 |
| """ | |
| This script demonstrates the use of nested transactions in SQLAlchemy, including | |
| a workaround for an issue with the SQLite backend. | |
| References: | |
| http://docs.sqlalchemy.org/en/latest/orm/session_transaction.html#using-savepoint | |
| http://docs.sqlalchemy.org/en/latest/dialects/sqlite.html#serializable-isolation-savepoints-transactional-ddl | |
| """ | |
| from sqlalchemy import Column, String, Integer |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Title</title> | |
| <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <h1>MVVM</h1> |