Skip to content

Instantly share code, notes, and snippets.

View jintangWang's full-sized avatar

tang jintangWang

View GitHub Profile
@jintangWang
jintangWang / 浩云人员管理系统 Tech Support.md
Last active November 12, 2020 01:49
浩云人员管理系统 Tech Support

浩云人员管理系统 Tech Support

app截图:

BxSoIH.md.png BxS5ZD.md.png BxSIde.md.png BxS7id.md.png BxShqO.md.png

@jintangWang
jintangWang / PubSub.js
Created February 11, 2019 09:58
简化版的 js 订阅者模式实现代码,简化了 [PubSub](https://github.com/mroderick/PubSubJS)
var PubSub = (function() {
var messages = {},
lastUid = -1;
function hasKeys(obj) {
for (var key in obj){
return true;
}
return false;
}
@jintangWang
jintangWang / box-shadow.html
Created December 28, 2018 13:59 — forked from ocean90/box-shadow.html
CSS3 Box Shadow, only top/right/bottom/left and all
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;
@jintangWang
jintangWang / WebViewAutoHeight.js
Created November 20, 2018 09:33 — forked from esamattis/WebViewAutoHeight.js
React native: Is it possible to have the height of a html content in a webview? http://stackoverflow.com/q/32952270
/*
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2016 Esa-Matti Suuronen <esa-matti@suuronen.org>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
@jintangWang
jintangWang / fetch
Created September 29, 2017 09:48
封装的fetch
const defaultUrl = 'https://cnodejs.org/api/v1';
const header = new Headers({
'Accept': 'application/json',
'Content-Type': 'application/json'
});
const defaultConfig = {
method: 'GET',
headers: header,
mode: 'cors',
credentials: "same-origin", // 设置fetch自动地发送本地的Cookie
@jintangWang
jintangWang / address.json
Created April 13, 2017 06:33
address的数据,方便做省市联动
[{
"p": "北京",
"c": [{ "n": "东城区" }, { "n": "西城区" }, { "n": "崇文区" }, { "n": "宣武区" }, { "n": "朝阳区" }, { "n": "丰台区" }, { "n": "石景山区" }, { "n": "海淀区" }, { "n": "门头沟区" }, { "n": "房山区" }, { "n": "通州区" }, { "n": "顺义区" }, { "n": "昌平区" }, { "n": "大兴区" }, { "n": "平谷区" }, { "n": "怀柔区" }, { "n": "密云县" }, { "n": "延庆县" }]
}, {
"p": "天津",
"c": [{ "n": "和平区" }, { "n": "河东区" }, { "n": "河西区" }, { "n": "南开区" }, { "n": "河北区" }, { "n": "红挢区" }, { "n": "滨海新区" }, { "n": "东丽区" }, { "n": "西青区" }, { "n": "津南区" }, { "n": "北辰区" }, { "n": "宁河区" }, { "n": "武清区" }, { "n": "静海县" }, { "n": "宝坻区" }, { "n": "蓟县" }]
}, {
"p": "河北",
"c": [{
"n": "石家庄",
@jintangWang
jintangWang / _base.scss
Last active February 27, 2017 08:35
base.scss(附sass开发规范)
@import "_variables";
//公共的minix开始-------------------------------------------------------------------------------------------
@mixin size($width:null,$height:null){
@if($width){width:$width;}
@if($height){height:$height;}
}
@mixin clearfix{
&:before,&:after{
display: table;
content: '';
@jintangWang
jintangWang / base.less
Last active November 17, 2016 07:29
公用的less minix 和less开发规范
@import (reference) "variables.less";
//公共的minix开始-------------------------------------------------------------------------------------------
.clearfix{
&:before,&:after{
display: table;
content: '';
}
&:after{
clear: both;
}
@jintangWang
jintangWang / main.less
Created November 10, 2016 07:03 — forked from nanpx/main.less
LESS
@charset "UTF-8";
@import "variables.less";
@import "mixins.less";
@import "reset.less";
@import "utility.less";
@jintangWang
jintangWang / less loop.md
Created November 7, 2016 09:10 — forked from shawndxl/less loop.md
用 LESS 写一个帧动画类型的函数 / LESS keyframes loop method

用 LESS 写一个 可复用的 帧动画类型的 函数 / A css keyframes loop with LESS

For example , you have a css animation like this

/* CSS */
@keyframes demo {
	0% { background-image: url(../img/demo/1.png); }
	20% { background-image: url(../img/demo/2.png); }
	40% { background-image: url(../img/demo/3.png); }
	60% { background-image: url(../img/demo/4.png); }