chord

Run a chord callback even if the main tasks fail

别说谁变了你拦得住时间么 提交于 2020-07-02 08:52:53
问题 Is it possible to run a chord callback even if the main tasks failed? I've created a chord which I added a bunch of tasks and registered a callback to it. My problem, is that if one of the tasks fail the callback is not triggered, but I would like the callback to be triggered either way. I've tried to register the callback with si() (immutability) callback = tasks.run_delete_rule.si([timestamp]) header = [tasks.run_update_rule.s(i, timestamp) for i in item_ids] result = chord(header)(callback

How to type Backslash in VScode on Linux

偶尔善良 提交于 2020-03-05 05:31:07
问题 I'm using Visual Studio Code on an Ubuntu 18.04 laptop. I'm loving the editor, but I can't seem to be able to type the backslash ( \ ). When I click the backslash I only see the status bar saying: (\) was pressed. Waiting for second key of chord... I googled the error above and found this SO thread which talks about the same error when hitting Ctrl + E .The highest upvoted answer says that I need to "remove all the shortcuts that use the Ctrl + E chord" . But I can't find any with just a

Display possible chord continuations in Visual Studio

吃可爱长大的小学妹 提交于 2019-12-04 10:31:15
问题 Visual Studio (with or even without plug-ins) has many chord keys. By "chord" I mean a several consecutive presses, like Format Document Ctrl + D , F Extract Method (resharper) Ctrl + R , Ctrl + M When I press the first combination, the status bar says: (Ctrk+K) was pressed. Waiting for second key of a chord... I remember that Eclipse would display a popup listing all possible continuations when I press the first key of a chord. Is it possible to achieve this in Visual Studio too? A plug-in

Highlight selected node, its links, and its children in a D3 force directed graph

此生再无相见时 提交于 2019-11-26 01:05:51
问题 I am working on a force directed graph in D3. I want to highlight the mouseover\'d node, its links, and its child nodes by setting all of the other nodes and links to a lower opacity. In this example, http://jsfiddle.net/xReHA/, I am able to fade out all of the links and nodes then fade in the connected links, but, so far, I haven\'t been able to elegantly fade in the connected nodes that are children of the currently mouseover\'d node. This is the key function from the code: function fade

Highlight selected node, its links, and its children in a D3 force directed graph

﹥>﹥吖頭↗ 提交于 2019-11-26 00:17:43
I am working on a force directed graph in D3. I want to highlight the mouseover'd node, its links, and its child nodes by setting all of the other nodes and links to a lower opacity. In this example, http://jsfiddle.net/xReHA/ , I am able to fade out all of the links and nodes then fade in the connected links, but, so far, I haven't been able to elegantly fade in the connected nodes that are children of the currently mouseover'd node. This is the key function from the code: function fade(opacity) { return function(d, i) { //fade all elements svg.selectAll("circle, line").style("opacity",