Skip to content

Instantly share code, notes, and snippets.

import xml.etree.ElementTree as ET
import random
import uuid
import datetime
import string
from decimal import Decimal
# 命名空间定义
NS = {
'xs': 'http://www.w3.org/2001/XMLSchema',
@apan2017
apan2017 / converting_keras_model.py
Created December 7, 2023 13:41 — forked from Namburger/converting_keras_model.py
Example of creating a dummy keras model and convert it to tflite with tensorflow1.15
import tensorflow as tf
if not str(tf.__version__).startswith('1.15'):
print('please use tensorflow 1.15')
exit()
from tensorflow.keras.models import Model
from tensorflow.keras.layers import Input, Conv2D
tf.enable_eager_execution()
image_shape = (64,64,3)
@apan2017
apan2017 / iPhone-6-plus.css
Created December 1, 2017 06:17
iPhone 6 Plus & iPad Air 2 media query (Retina HD displays). Also works for similar Android devices.
/* iPhone 6 Plus & iPad Air 2 media query (Retina HD displays).
Also works for similar Android devices. */
/* Use x2 images by default. */
.logo {
background-image: url(http://hellyeah.is/images/text-logo-ns@x2.png);
height: 300px;
width: 100%;
background-size: contain;
background-repeat: no-repeat;
background-position: center;