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;
}
<?php | |
/** | |
* A simple php script to generate random CSS colors at each request. | |
*/ | |
$hsl = rand(0, 240) . ',' . rand(50, 80) . '%,60%'; | |
?> | |
<style type="text/css"> | |
a { | |
color: hsl(<?php echo $hsl ?>); |
A warning occurred (42 apples) | |
An error occurred |
import hashlib as hasher | |
import datetime as date | |
# Define what a Snakecoin block is | |
class Block: | |
def __init__(self, index, timestamp, data, previous_hash): | |
self.index = index | |
self.timestamp = timestamp | |
self.data = data | |
self.previous_hash = previous_hash |
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Ampersand</title> | |
<style> | |
@font-face { | |
font-family:"Goudy Bookletter 1911"; | |
src:url('http://themes.googleusercontent.com/static/fonts/goudybookletter1911/v3/l5lwlGTN3pEY5Bf-rQEuIHkY3soKkPv_thL__S829Cw.eot#iefix') format('embedded-opentype'), |
.git
folder to appsGIT_DIR
and GIT_WORK_TREE
environment variables to containers#!/usr/bin/env sh | |
# Link good as of June 2018 | |
# Download lists, unpack and filter, write to stdout | |
curl -s https://www.iblocklist.com/lists.php \ | |
| sed -n "s/.*value='\(http:.*\?list=.*\)'.*/\1/p" \ | |
| xargs wget -O - \ | |
| gunzip \ | |
| egrep -v '^#' |
#!/bin/bash | |
# bash generate random alphanumeric string | |
# | |
# bash generate random 32 character alphanumeric string (upper and lowercase) and | |
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
# bash generate random 32 character alphanumeric string (lowercase only) | |
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 |
/* border-serrated - a zig zag triangle border with linear gradient | |
*/ | |
@mixin border-top-serrated($size, $color-outer) { | |
& { | |
position: relative; | |
overflow: auto; | |
padding-top: $size; | |
} | |
&:before { | |
top: 0px; |