This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
v11.7.0 | |
6.5.0 | |
koa-subdomain@2.4.0 /home/keenwon/Code/koa-subdomain | |
├─┬ chai@4.2.0 | |
│ ├── assertion-error@1.1.0 | |
│ ├── check-error@1.0.2 | |
│ ├─┬ deep-eql@3.0.1 | |
│ │ └── type-detect@4.0.8 deduped | |
│ ├── get-func-name@2.0.0 | |
│ ├── pathval@1.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { h, Component } from 'preact'; | |
/** Creates a new store, which is a tiny evented state container. | |
* @example | |
* let store = createStore(); | |
* store.subscribe( state => console.log(state) ); | |
* store.setState({ a: 'b' }); // logs { a: 'b' } | |
* store.setState({ c: 'd' }); // logs { c: 'd' } | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Canvas · 雷达动画</title> | |
<style> | |
* { | |
margin: 0; | |
padding: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const readline = require('readline'); | |
// 百分比 | |
let percentage = 0; | |
// 时长 | |
let time = 5 * 1000; | |
// 频率 | |
let frequency = 50; | |
// 步长 | |
let step = 1 / (time / frequency); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="zh-CN"> | |
<head> | |
<title>Loading bar</title> | |
<meta charset="utf-8"> | |
<style type="text/css"> | |
.loadingbar { | |
position: fixed; | |
z-index: 2147483647; | |
top: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype HTML> | |
<html> | |
<head> | |
<title>Redux Test</title> | |
</head> | |
<body> | |
<script src="https://npmcdn.com/redux@3.5.2/dist/redux.js"></script> | |
<script> | |
// actions | |
const ADD = 'ADD'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all | |
lg = !"git lg1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<!--[if lte IE 9]> | |
<html lang="zh-CN"> | |
<![endif]--> | |
<!--[if (gt IE 9)|!(IE)]><!--> | |
<html lang="zh-CN" class="css3"> | |
<!--<![endif]--> | |
<head> | |
<title>test</title> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
module.exports = function (cssText) { | |
if (!cssText) { | |
return; | |
} | |
var head = document.head || document.getElementsByTagName('head')[0], | |
style = document.createElement('style'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'), | |
path = require('path'), | |
filePath = path.join(__dirname, 'log.txt'), //抓取结果写入log.txt文件 | |
http = require('http'); | |
var page = 1, //开始页码 | |
maxPage = 100, //结束页码 | |
search, | |
next, | |
run; |
NewerOlder