html {
font-family: "-apple-system", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif
}- 桌面端
- OSX 10.11+
San Francisco
| // 1. fn's last argument should be a callback | |
| // 2. the syncified function returns an array, which is the arguments for that callback. | |
| function syncify (fn) { | |
| let doing = true | |
| return function (...args) { | |
| let result = undefined | |
| fn(...args, (...callbackArgs) => { | |
| result = callbackArgs | |
| doing = false | |
| }) |
百姓一道题,粗糙的路由轮子
index.js 中测试代码:
router.add('/a/:id', fn1);
router.add('/a/b', fn2);
生成的路由结构为:
| 'use strict'; | |
| angular.module('Utils', []) | |
| /** | |
| * Transform a date to 'xxx days ago' | |
| */ | |
| .filter('ago', function () { | |
| return function (input) { |
Gmail-Air-Skin's rebirth.
Install it from http://userstyles.org/styles/99260/
| /***** Fork me on Github *****/ | |
| #fork-me-on-github { | |
| opacity : 0.8; | |
| background-color : #A00; | |
| color : #FFF; | |
| display : block; | |
| position : fixed; | |
| z-index : 10; | |
| right : -6em; |