vibrant

vibrant.js 是一个自动提取图片重要颜色的库.
咱们前端图标可能用到.

阅读更多

AppIntro

AppIntro is an Android app introduction maker. Developers can make cool introduction or new user guidance easily with a few lines of code.

阅读更多

pdfmake

PDFmake is an amazing tool to print PDF file from client/server side using pure js code. Like this,

阅读更多

WebRTC

Real-Time video chat solution for WEB browser.

WebRTC is a free, open project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.

阅读更多

自动切换浏览器核心

原文
在页面中插入如下meta标签,可以使得用户使用360、搜狗等双内核浏览器的时候自动使用极速内核(WebKit内核)。

阅读更多

Redis and Mongodb

Redis is another NoSQL database like Mongodb. As the site describes, it is a “key-value cache and store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets, sorted sets, bitmaps and hyperloglogs.”

阅读更多

Three Cool Frontend CSS/JS Effects

Please, appreciate the cool CSS/JS effects made by CodyHouse.

  1. Animated Page Transition

阅读更多

tabris.js

tabris.js is another tool for javascript developers to build iOS/Android native app. It seems more simple than its counterparts.

阅读更多

clusterize.js

clusterize.js is a plugin to boost large data display in frontend. I was shocked when trying their demo, it loaded and scrolled a table about 500,000 rows easily.

阅读更多

快速去重算法

开发数据平台的时候遇到了性能瓶颈;
当我用lodash的uniq方法去重一个很大的数组的时候,性能非常的差,
后来在stackoverflow上找到了很多神奇的去重技巧:

例如我目前用的快得让人无法相信的奇怪算法:

1
2
3
4
var array = [1, 2, 3, 4, 5, 6, 2, 3, 4];
var obj = {};
array.forEach(function(id){obj[id] = true});
array = Object.keys(obj);

阅读更多