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
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>flying_layout</title> | |
<style type="text/css"> | |
body { | |
min-width: 600px; /* 2*left + right */ | |
margin:0; | |
padding: 0; | |
} | |
.main-wrapper { | |
float: left; |
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" |
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: [email protected] | |
* 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
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
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
; | |
(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
# 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
@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 -*- | |
"""用于计算煮,粥预约时间""" | |
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
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: |