Jinja2 adapter for Django.
其主页表示:Please use django_jinja
instead.
// source: https://github.com/vuejs/vue/blob/dev/src/core/util/env.js | |
export const inBrowser = typeof window !== 'undefined' | |
export const inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform | |
export const weexPlatform = inWeex && WXEnvironment.platform.toLowerCase() | |
export const UA = inBrowser && window.navigator.userAgent.toLowerCase() | |
export const isIE = UA && /msie|trident/.test(UA) | |
export const isIE9 = UA && UA.indexOf('msie 9.0') > 0 | |
export const isEdge = UA && UA.indexOf('edge/') > 0 | |
export const isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android') | |
export const isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios') |
aaa = u'你好' | |
result = '' | |
for i in range(len(aaa)): | |
item = hex(ord(aaa[i])) | |
item = str(item)[2:] | |
item = item.upper() | |
item = item.zfill(4) | |
result = result + item | |
print result |
~#sudo apt-get install cmatrix
~# cmatrix
~# oneko
~# sl
PHANTOMJS_CDNURL=http://cnpmjs.org/downloads npm install phantomjs
用 http://google.com/ncr 访问一次主站,以后就不会重定向了
1、
@font-face {
font-family: BASE;
src: local('PingFang SC'),
local("Microsoft Yahei");
}
字符集 | 字数 | Unicode 编码 |
---|---|---|
基本汉字 | 20902字 | 4E00-9FA5 |
基本汉字补充 | 38字 | 9FA6-9FCB |
扩展A | 6582字 | 3400-4DB5 |
扩展B | 42711字 | 20000-2A6D6 |
扩展C | 4149字 | 2A700-2B734 |
扩展D | 222字 | 2B740-2B81D |
// https://stackoverflow.com/a/62892482/3676413 | |
import { fileURLToPath } from 'url'; | |
import { dirname } from 'path'; | |
const __filename = fileURLToPath(import.meta.url); | |
const __dirname = dirname(__filename); |