This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
webpack.prod.conf.js | |
添加的自定义函数 | |
filename:编译后的目标文件,相对路径是 dist | |
template:明确的模板,相对路径是 项目根目录 | |
然后,来源,是 entry一一对应的入口(这是隐藏的) | |
大原则,就是,和 webpack.base.config.js的Entry一一对应 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
newlines = [] | |
with open('ff','r',encoding='UTF-8') as f: | |
lines = f.readlines() | |
for line in lines: | |
m = re.search(r'.+: (\d.px).+',line) | |
newline = '' | |
if m: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
"""用于计算煮,粥预约时间""" | |
from datetime import datetime, timedelta, date | |
now_datetime = datetime.now() | |
cook_what = 'zhou' # 粥 | |
cooked_time = '6:00:00' # 次日时间 | |
cook_menu = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@charset "UTF-8"; | |
@function rpx($v) { | |
@return $v/1px * 1rpx; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import json | |
import re | |
import requests | |
# 替换成你自己的经纬度数据 | |
# 查询方式 打开饿了么官网 -> 开发者模式 -> 输入送餐地址 -> 观察请求 -> 找到经纬度数据 | |
latitude = 31.23978 | |
longitude = 121.49968 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
(function(doc, win) { | |
var docEl = doc.documentElement, | |
resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize', | |
recalc = function() { | |
var clientWidth = docEl.clientWidth; | |
if (!clientWidth) return; | |
// 不同尺寸可以配置 | |
// if(clientWidth>=640){ | |
// docEl.style.fontSize = '100px'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git remote add <remote_name> https://github.com/ss/ss.git | |
git fetch <remote_name> | |
git branch <local_branch> | |
git merge <remote_name>/master --allow-unrelated-histories |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.font_manager as fm | |
import numpy as np | |
import matplotlib.pyplot as plt | |
myfont = fm.FontProperties(fname='/Library/Fonts/Microsoft/Microsoft Yahei.ttf') | |
x = np.linspace(0,2,50) | |
y1 = x | |
y2 = np.log(x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************* | |
* Author: Mark24 | |
* Mail: mark.zhangyoung@qq.com | |
* Github: Mark24Code | |
* Date: 2017/08/01 | |
*******************/ | |
/******************* | |
* Gulp依赖 | |
*******************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"show_encoding": true, | |
"bold_folder_labels": true, | |
"draw_white_space": "all", | |
"file_exclude_patterns": | |
[ | |
], | |
"folder_exclude_patterns": | |
[ | |
"node_modules" |