首先要搞清楚“空两格”的意义是什么?段首空格表示段落重新开始,基本小学写作文都这么教的。但“空两格”真的就能清楚标示段落么?这个问题被放大到互联网上,尤其在对比英文段落效果后,中文段落“空两格”的传统开始受到质疑。先来看新浪博客网志页的两格例子:
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
#!/bin/bash | |
echo 'start...' | |
git lfs install | |
git clone https://huggingface.co/coreml/coreml-lofi-V2 | |
git clone https://huggingface.co/coreml/coreml-realisticVision-v20 | |
git clone https://huggingface.co/coreml/coreml-floralPatterns-v10 | |
git clone https://huggingface.co/coreml/coreml-vanGoghDiffusion_v1 | |
git clone https://huggingface.co/coreml/coreml-Project-AIO |
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 os = require('os'); | |
module.exports = function random() { | |
return +(process.hrtime()[1] * os.freemem() % 1000 / 1000).toFixed(2); | |
} |
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
function s2t(str) | |
local t = {} | |
local l = string.len(str) | |
local key = '' | |
local val = '' | |
local oe = 0 | |
for i = 1, l do | |
local s = string.sub(str, i, i) | |
if s ~= ' ' then |
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
function big(n, m) { | |
var a1 = f(n), a2 = f(m); | |
var overflow = d(a1[1], a2[1]); | |
arr = [a1[0] + a2[0] + overflow[0], overflow[1]]; | |
return +arr.join('.'); | |
} | |
function f(n) { | |
var tmp = ('' + n).split('.'); | |
if(tmp.length === 1) tmp[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
[email protected] /srv/www/projectPrivate | |
├─┬ [email protected] | |
│ ├─┬ [email protected] | |
│ │ └─┬ [email protected] | |
│ │ └── UNMET DEPENDENCY core-js@^1.0.0 | |
│ ├─┬ [email protected] | |
│ │ └─┬ [email protected] | |
│ │ └── UNMET DEPENDENCY core-js@^1.0.0 | |
│ ├─┬ [email protected] | |
│ │ ├─┬ [email protected] |
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
function invert(tree) { | |
if (!tree instanceof Array || tree.length === 1) return tree; | |
var ret = []; | |
var inverted = tree.reverse(); | |
for(var cur in inverted) { | |
if(!inverted.hasOwnProperty(cur)) continue; | |
ret.push(inverted[cur] instanceof Array ? invert(inverted[cur]) : inverted[cur]); | |
} |
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
<html> | |
<style> | |
.triggers .active {color:#f30;} | |
.targets div {display:none;} | |
.targets .active {display:block;} | |
</style> | |
<div class="triggers"> | |
<a href="#tab1" class="active">tab1</a> |
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 range = function(num) { | |
return Array(num).fill(1).reduce(function(ret, item, i) { | |
return ret.concat(i + 1); | |
}, []); | |
}; | |
var select = function(num) { | |
var ID = '___list'; | |
var list = window[ID] || localStorage.getItem(ID); | |
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
// 这语法挺正常的 | |
[].indexOf(0); // #1 | |
// 这命名相比上面就醉了 | |
[] instanceof Array; //#2 | |
// 和一面一样的语法,又醉了 | |
typeof []; //#3 | |
// 坑也多 |
NewerOlder