Skip to content

Instantly share code, notes, and snippets.

View Mark24Code's full-sized avatar
💻
Exploring

Mark24 Mark24Code

💻
Exploring
View GitHub Profile
<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;
@Mark24Code
Mark24Code / setting
Last active April 24, 2017 06:43
Sublime_Config
{
"show_encoding": true,
"bold_folder_labels": true,
"draw_white_space": "all",
"file_exclude_patterns":
[
],
"folder_exclude_patterns":
[
"node_modules"
@Mark24Code
Mark24Code / gulpfile.js
Last active September 13, 2017 15:21
Gulp
/*******************
* Author: Mark24
* Mail: mark.zhangyoung@qq.com
* Github: Mark24Code
* Date: 2017/08/01
*******************/
/*******************
* Gulp依赖
*******************/
@Mark24Code
Mark24Code / complexity_graph.py
Last active April 26, 2017 06:30
绘制时间复杂度范围
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)
@Mark24Code
Mark24Code / git
Created April 27, 2017 07:59
git command
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
@Mark24Code
Mark24Code / mobile_fit.js
Last active April 28, 2017 05:29
rem layout
;
(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';
@Mark24Code
Mark24Code / eleme.py
Created May 8, 2017 00:42 — forked from SaulLawliet/eleme.py
查询饿了么品牌馆中有哪些是 <真·五折>
# coding: utf-8
import json
import re
import requests
# 替换成你自己的经纬度数据
# 查询方式 打开饿了么官网 -> 开发者模式 -> 输入送餐地址 -> 观察请求 -> 找到经纬度数据
latitude = 31.23978
longitude = 121.49968
@Mark24Code
Mark24Code / _base.scss
Created June 5, 2017 02:13
微信小程序Gulp & Sass
@charset "UTF-8";
@function rpx($v) {
@return $v/1px * 1rpx;
}
@Mark24Code
Mark24Code / cooker.py
Last active June 23, 2017 09:08
煮粥电饭煲计算预约时间
# -*- coding: utf-8 -*-
"""用于计算煮,粥预约时间"""
from datetime import datetime, timedelta, date
now_datetime = datetime.now()
cook_what = 'zhou' # 粥
cooked_time = '6:00:00' # 次日时间
cook_menu = {
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: