autocomplete

zsh autocomplete slow for ssh

▼魔方 西西 提交于 2021-01-05 06:29:59
问题 I upgraded my macbook to OSX Catalina recently. Ever since that upgrade my zsh autocomplete (tab completion) for ssh is really slow (previously, it was reasonably fast, e.g. autocomplete would happen in a few seconds). Some details that I think are relevant: I have a ~/.ssh/config file with ~2000 hosts configured When I type ssh x <TAB> things seem to hang, typing ctrl-C says Killed by signal in _ssh_hosts after 22s so it seems that my _ssh_hosts script is the problem Any tips on how to debug

zsh autocomplete slow for ssh

回眸只為那壹抹淺笑 提交于 2021-01-05 06:29:37
问题 I upgraded my macbook to OSX Catalina recently. Ever since that upgrade my zsh autocomplete (tab completion) for ssh is really slow (previously, it was reasonably fast, e.g. autocomplete would happen in a few seconds). Some details that I think are relevant: I have a ~/.ssh/config file with ~2000 hosts configured When I type ssh x <TAB> things seem to hang, typing ctrl-C says Killed by signal in _ssh_hosts after 22s so it seems that my _ssh_hosts script is the problem Any tips on how to debug

git completion in zsh: __git_func_wrap:3: : not found

风格不统一 提交于 2020-12-30 07:45:53
问题 git-completion.zsh and git-completion.bash are installed automatically when running brew install git : ❯ ls -l /usr/local/share/zsh/site-functions/_git lrwxr-xr-x 56 quanta 7 Jul 18:54 /usr/local/share/zsh/site-functions/_git -> ../../../Cellar/git/2.27.0/share/zsh/site-functions/_git ❯ ls -l /usr/local/share/zsh/site-functions/git-completion.bash lrwxr-xr-x 71 quanta 7 Jul 18:54 /usr/local/share/zsh/site-functions/git-completion.bash -> ../../../Cellar/git/2.27.0/share/zsh/site-functions/git

js动态获取当前城市天气参数

杀马特。学长 韩版系。学妹 提交于 2020-12-25 11:52:36
该demo使用的是angular.js框架 一、天气接口:http://wthrcdn.etouch.cn/weather_mini?city=城市名称 二、js中调用    /*获取天气参数*/ function refreshWeather() { jQuery.support.cors = true; var url = encodeURI("http://wthrcdn.etouch.cn/weather_mini?city=" + $scope.city); $.get({ url: url, dataType: "json", async: false, success: function (data) { var list = data.data.forecast; if (list.length < 3 ) { return; } var wList = []; for (var i = 0; i < 3; i++) { var item = list[i]; var high = item.high.split(" ")[1]; var low = item.low.split(" ")[1]; wList.push({ day: item.date.slice(-3), type: item.type, temperature: high + "/" + low

H5表单

寵の児 提交于 2020-12-18 06:05:48
一、<form>标签 用户填写表单进行提交后,将表单信息从浏览器传送到服务器,服务器处理后,将用户所需信息传送回浏览器,这样就实现了网页的交互性。 表单标签<form></form>在一般情况下,处理程序属性action和传送方式属性method,是必不可少的。 (1)处理程序属性——action action属性存储的是处理表单的数据脚本或程序,这个值可以是程序或脚本的 一个完整url。 因为表单的处理程序 定义的是表单要提交的地址, 也就是 表单中收集到的资料将要传递的程序地址。 这个地址可以是绝对地址、相对地址,甚至是E-mail地址。当地址为E-mail地址时,表示程序运行后将表单收集到的内容以电子邮件的形式发送出去。 (2)名称属性——name (3)传送方法属性——method 该属性定义的是:处理程序从表单中获得信息的方式,可取值GET和POST,他决定了表单已收集的数据是用什么方式发送到服务器。 method=“GET”:使用该方式提交表单,来访者输入的数据会附加在URL之后发送到服务器,速度快,但数据长度不能太长。method没有指定的情况下,一般默认为GET; method=“POST”:使用该方式提交表单,表单数据会与URL分开发送,用户端的计算机会通知服务器读取数据,通常没有数据长度上的限制,缺点是速度慢。 (4)编码方式属性——enctype

H5表单基础知识(二)

匆匆过客 提交于 2020-12-18 05:06:51
表单新增属性 <!--<input type="text" class="name" />--> <!-- placeholder:提示文字(占位符) autofocus:自动获取焦点 autocomplete: 自动完成(填充的) on 开启(默认) off 取消自动提示 required: 必填 multiple: 多选 novalidate:关闭默认的验证功能(只能加给form) pattern: 自定义正则验证 pattern="1\d{10}" --> <!--<form action="" novalidate>--> <form action="" > <fieldset> <legend>表单属性</legend> <label for=""> 用户名:<input type="text" placeholder="例如:李狗蛋" autofocus name="userName" autocomplete="on" required/> </label> <label for=""> 电话:<input type="tel" pattern="1\d{10}" /> </label> <!-- 上次文件--> <input type="file" name="file" multiple/> <input type="submit" /> </fieldset>

html

a 夏天 提交于 2020-12-10 06:05:34
HTML 标签语言 概念    超文本标记语言 ,是一种用于创建网页的标记语言。 ps:   不是编程语言,是利用标签来描述网页的。   扩展名:.html  .htm 语法规范 标签不区分大小写,推荐小写。 双标签必须写完整(浏览器不会报错,而且自动补全,但是最终效果很大可能性影响整体布局)。 不用标签形式的内容会以完整的原内容进行展示。 合理的注释:"<!--注释内容-->"和缩进增加代码的可读性 文档结构 <! DOCTYPE html > < html lang ="zh-CN" > < head > < meta charset ="UTF-8" > < title > css样式优先级 </ title > </ head > < body > </ body > </ html > 属性说明    <!DOCTYPE html>: 声明为HTML5文档   <html></html>: 是文档的开始标记和结束的标记。是HTML页面的根元素,在它们之间是文档的头部(head)和主体(body)   <head></head>: 定义了HTML文档的开头部分。它们之间的内容不会在浏览器的文档窗口显示。包含了文档的元(meta)数据。   <title></title>: 定义了网页标题,在浏览器标题栏显示   <body></body>: 之间的文本是可见的网页主体内容

How to click on an autocomplete after filling partial text?

好久不见. 提交于 2020-11-29 03:39:40
问题 I am testing a form, it has a categories field, it's an input-based drop-down menu. After add some text with .send_keys('text') it shows a list of categories. Take a look at its HTML: <input type="text" aria-required="true" id="categories" maxlength="64" value="" autocomplete="off" class="input__69f5f__1POmY" placeholder="Pizza (Be specific)"> I am doing this to find and submit input text: categories = browser.find_element_by_id('categories').send_keys('Software Development') after that, it

How to click on an autocomplete after filling partial text?

若如初见. 提交于 2020-11-29 03:34:06
问题 I am testing a form, it has a categories field, it's an input-based drop-down menu. After add some text with .send_keys('text') it shows a list of categories. Take a look at its HTML: <input type="text" aria-required="true" id="categories" maxlength="64" value="" autocomplete="off" class="input__69f5f__1POmY" placeholder="Pizza (Be specific)"> I am doing this to find and submit input text: categories = browser.find_element_by_id('categories').send_keys('Software Development') after that, it

How to click on an autocomplete after filling partial text?

南笙酒味 提交于 2020-11-29 03:34:01
问题 I am testing a form, it has a categories field, it's an input-based drop-down menu. After add some text with .send_keys('text') it shows a list of categories. Take a look at its HTML: <input type="text" aria-required="true" id="categories" maxlength="64" value="" autocomplete="off" class="input__69f5f__1POmY" placeholder="Pizza (Be specific)"> I am doing this to find and submit input text: categories = browser.find_element_by_id('categories').send_keys('Software Development') after that, it