zthxxx / wiki-site Goto Github PK
View Code? Open in Web Editor NEWMy personal knowledge management site.
Home Page: https://wiki.zthxxx.me
My personal knowledge management site.
Home Page: https://wiki.zthxxx.me
what impressive that i learn in the GoogleVoice script
eval set --
to deal with space in optionsManage Origanization with mission, use Team, Issues, MileStone, Procjet
purpose: incentive learning to keep up with the Joneses
abstract: assess man's volume of learning and create result to publicly displayed rank point
expectation: learning initiative increased
scheme:
Iterator
对象不可查询是否已结束for of
遍历 Iterator
中,如果 break
,则不管 Iterator
是否完成都直接 closeGenerator
函数生成的 Iterator
总是在所有 yield
都结束后才单独返回一值为函数 return
值的 done true
,如果函数没有 return
,则最后单独返回对象的 value
为空(undefined)for of
或扩展运算符等方法调用 Iterator
接口时,都会默认忽略最后一个 done
为 true
的对象中的值,所有很多时候 Generator
函数的 return
没有用function* gen () {
yield 1
yield 2
yield 3
}
let iter = gen()
// we cannot determine the object `iter` has finished or not
你好,我想请教一个问题。
昨晚阅读了你在 用 Hexo 做个人 Wiki 知识管理系统 这个帖子 127L 内容,也尝试这么做,但是遇到了问题。
原本的 Github pages 项目:xxx.Github.io ,放置 NEXT 主题的博客;
新建 Wiki-site 项目,设置 writing 和 gh-pages 分支,网页文件放到 gh-pages 分支;
访问 xxx.github.io 页面正常;
访问 xxx.github.io/Wiki-site 页面不正常。
点击此页面里的链接,中间缺失 /Wiki-site/
期望链接:
实际如下:
var val = 1
function wapper () {
console.log(val)
}
function out () {
var val = 2
wapper()
}
out()
// dynamic scope will output 2
// static scope will output 1 (js is static scope)
https://www.zhihu.com/question/20032419
https://zh.wikipedia.org/wiki/%E4%BD%9C%E7%94%A8%E5%9F%9F#静态作用域与动态作用域
learn python and js docstring
https://tools.ietf.org/html/rfc2616#section-3.2.1 HTTP/1.1
The HTTP protocol does not place any a priori limit on the length of a URI.
https://tools.ietf.org/html/rfc7230#section-3.1.1
It is RECOMMENDED that all HTTP senders and recipients support, at a minimum, request-line lengths of 8000 octets.
usually limit 2KB by browsers
你好,请教一下这个帖子 使用 Travis 自动构建 Hexo 到 GitHub 的相关问题。
我直接复制你项目下的配置文件(去掉 - gulp
这步)和脚本,然后自己绑定了 Access Token,前面都过了,就是最后 hexo deploy
失败,步骤都没错,问题应该还是认证出了问题。
_config.yml 文件,我尝试修改过 repo 地址为 Https类, SSH类,修改 type 为 git 或者 https。都提示失败。
以下 log 是 type git, repo 地址 ssh类型出的结果。
$ hexo deploy
INFO Deploying: git
INFO Setting up Git deployment...
Initialized empty Git repository in /home/travis/build/OHLIA/Wiki-site/.deploy_git/.git/
*** Please tell me who you are.
Run
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: empty ident name (for <>) not allowed
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: Spawn failed
at ChildProcess.<anonymous> (/home/travis/build/OHLIA/Wiki-site/node_modules/hexo-util/lib/spawn.js:52:19)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
travis_time:end:1016f340:start=1566804459853647012,finish=1566804460828702185,duration=975055173
�[0Ktravis_fold:end:after_success
�[0K
Done. Your build exited with 0.
refs:
多线程与后台通信
Hello, I also used travis to push to github, but recently switched to github actions to oss, but there is a problem. The static page access of oss needs to use the absolute path, and index.html must be added. What specific ejs file content needs Modifications, research on it?Read related blog posts, tutorials on other themes.
learn HSTS and know HSTS Preload List.
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router);
const user = {
template: `
<div class="user">
<h2>User</h2>
<router-view></router-view>
</div>
`
};
const routes = [
{
path: '/user',
component: user,
}
];
const router = new Router({routes});
Vue.mixin({
router
});
new Vue({
el: '#app',
template: `
<div>
<router-view></router-view>
</div>
`
});
全局混合 vue-router
将引起 user
中的 router-view
爆栈,原因未知,解决办法只能是不使用全局混合,改成单独注入:
Vue.mixin({
});
new Vue({
el: '#app',
router,
});
坏处是这样之后使用 new Vue.extend()
新建的实例中无法使用 $route
refs:
color like https://github.com/ammsa/Githeat
<div style="border:1px solid #34538b;">
<span style="display: inline-block;font-size: 80px;border:1px solid #a0b3d6;">大大的文字x</span>
<div style="display: inline-block">
<div>后面是div的文字</div>
<div>后面是div的文字</div>
<div>x后面是div的文字x</div>
</div>
xx 这才是静止的文字
</div>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.