react.js 学习

react.js是什么 react.js 是一个帮助你构建页面 UI 的库。如果你熟悉 MVC 概念的话,那么 react 的组件就相当于 MVC 里面的 View。如果你不熟悉也没关系,你可以
查看更多 →

React Native iOS使用Xcode打开,卡在Running 1 of 1 custom shell scripts

使用Xcode打开react native的ios项目,编译的时候卡在Running 1 of 1 custom shell scripts,一般这种问题基本上可以定位为网络
查看更多 →

如何使用chrome自带的图像识别功能做人脸识别

为保证项目能正常运行,请使用最新的chrome浏览器。打开浏览器,在浏览器地址中输入chrome://flags/#enable-exper
查看更多 →

d3.js Day / Hour Heatmap

<!DOCTYPE html> <meta charset="utf-8"> <html> <head> <style> rect.bordered { stroke: #E6E6E6; stroke-width:2px; } text.mono { font-size: 9pt; font-family: Consolas, courier; fill: #aaa; } text.axis-workweek { fill: #000; } text.axis-worktime { fill: #000; } </style> <script src="http://d3js.org/d3.v3.js"></script> </head> <body> <div id="chart"></div> <div id="dataset-picker"> </div> <script type="text/javascript"> var margin = { top: 50, right: 0, bottom: 100, left: 30 }, width = 960 - margin.left - margin.right, height = 430 - margin.
查看更多 →

d3.js Cluster Dendrogram

<!DOCTYPE html> <meta charset="utf-8"> <style> .node circle { fill: #999; } .node text { font: 10px sans-serif; } .node–internal circle { fill: #555; } .node–internal text { text-shadow: 0 1px 0 #fff, 0 -1px 0 #fff, 1px 0 0 #fff, -1px 0 0 #fff; } .link { fill: none; stroke: #555; stroke-opacity: 0.4; stroke-width: 1.5px; } </style> <svg width="960" height="2000"></svg> <script src="//d3js.org/d3.v4.min.js"></script> <script> var svg = d3.select("svg"), width = +svg.
查看更多 →