View style.css
body { | |
font-family: Courier; | |
font-size: 11pt; | |
} | |
#page { | |
margin-left: auto; | |
margin-right: auto; | |
padding-top: 5%; | |
padding-bottom: 5%; | |
padding-left: 10%; |
View print-delivery-note.php
<!DOCTYPE html> | |
<html lang="<?php echo WPLANG; ?>" class="<?php echo wcdn_get_template_type(); ?>"> | |
<head> | |
<meta charset="utf-8"> | |
<link href='http://fonts.googleapis.com/css?family=Poiret+One' rel='stylesheet' type='text/css'> | |
<link rel="stylesheet" href="<?php wcdn_stylesheet_url( 'style.css' ); ?>" type="text/css" media="screen,print" /> | |
</head> | |
<body> | |
<div id="container"> | |
<div id="content"> |
View print-delivery-note.php
<!DOCTYPE html> | |
<html lang="<?php echo WPLANG; ?>" class="<?php echo wcdn_get_template_type(); ?>"> | |
<head> | |
<meta charset="utf-8"> | |
<link href='http://fonts.googleapis.com/css?family=Poiret+One' rel='stylesheet' type='text/css'> | |
<link rel="stylesheet" href="<?php wcdn_stylesheet_url( 'style.css' ); ?>" type="text/css" media="screen,print" /> | |
</head> | |
<body> | |
<div id="container"> | |
<div id="content"> |
View flatten.py
def flatten(li): | |
"""Flatten lists or tuples into their individual items. If those items are | |
again lists or tuples, flatten those.""" | |
if isinstance(li, (list, tuple)): | |
for item in li: | |
yield from flatten(item) | |
else: | |
yield li |
View reducing.py
"""reducing.py | |
Author: Kirgsn, 2018 | |
Use like this: | |
>>> import reducing | |
>>> df = reducing.Reducer().reduce(df) | |
""" | |
import numpy as np | |
import pandas as pd | |
import time |