Skip to content

Instantly share code, notes, and snippets.

View ibeeger's full-sized avatar
🐮
coding

邯 xiaohan.cui ibeeger

🐮
coding
View GitHub Profile
@ibeeger
ibeeger / webpack.config.js
Last active July 22, 2020 05:13
webpack.config.js multi-compiler Sequential execution
/**
webpack.config.js
**/
const webpack = require('webpack');
const env = process.env.NODE_ENV;
const configs = [{
name:"one",
entry:{
},
@ibeeger
ibeeger / htmltopdf.md
Last active May 25, 2018 06:15
html 生成pdf 功能分析

html 生成 pdf

 未完 后面分析不同方案有略胜

@ibeeger
ibeeger / colors.js
Created June 12, 2018 03:32
判断两色素颜色的相似度
var Distance = 150; //设置阀值 结果和该值比较,如果小于它就代表相似
//color1 = {r:xxx,b:xxx,g:xxx};
function Compared(color1,color2){
let _liked = false;
let _r = color1.r-color2.r;
let _g = color1.g-color2.g;
let _b = color1.b-color2.b;
if(Math.sqrt(Math.pow(_r,2)+Math.pow(_g,2)+Math.pow(_g,2))<Distance){
@ibeeger
ibeeger / video.md
Last active July 3, 2018 03:36
video标签属性

video的属性

 
 <video
  id="video" 
  src="video.mp4" 
  controls = "true"
  poster="images.jpg" /*视频封面*/
  preload="auto" 
 webkit-playsinline="true" /*这个属性是ios 10中设置可以