This file contains hidden or 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
| src/icons/images/mytype.svg: | |
| The icon image content. | |
| src/icons/icons.css: | |
| .binf-widgets .myext-mytype { | |
| background-image: url('images/mytype.svg'); | |
| } |
This file contains hidden or 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
| src/icons/images/dwg.svg: | |
| The icon image content. | |
| src/icons/icons.css: | |
| .binf-widgets .acad-mime-dwg { | |
| background-image: url('images/dwg.svg'); | |
| } |
This file contains hidden or 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
| src/commands/profile.menuitems.js (add menu items): | |
| define(function () { | |
| return { | |
| profileMenu: [ | |
| { | |
| signature: 'myext-open-pws', | |
| name: 'Go to Personal Workspace', | |
| group: 'others' | |
| } |
This file contains hidden or 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/sh | |
| # Look for NPM modules of the authors below in the local node_modules. | |
| # Author of left-pad unpublished their modules from the NPM registry, | |
| # which broke a lot of packages. | |
| # https://www.theregister.com/2016/03/23/npm_left_pad_chaos/ | |
| # https://medium.com/@mproberts/a-discussion-about-the-breaking-of-the-internet-3d4d2a83aa4d | |
| # https://blog.npmjs.org/post/141577284765/kik-left-pad-and-npm | |
| # https://www.reddit.com/r/programming/comments/4bjss2/an_11_line_npm_package_called_leftpad_with_only/ |
This file contains hidden or 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
| /*jslint plusplus: true, vars: true, indent: 2 */ | |
| /* | |
| convertPointFromPageToNode(element, event.pageX, event.pageY) -> {x, y} | |
| returns coordinate in element's local coordinate system (works properly with css transforms without perspective projection) | |
| convertPointFromNodeToPage(element, offsetX, offsetY) -> {x, y} | |
| returns coordinate in window's coordinate system (works properly with css transforms without perspective projection) | |
| */ |
This file contains hidden or 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
| #!/usr/bin/env -S v run | |
| // import json | |
| // import os | |
| import v.reflection { get_type } | |
| // Declare structures covering a subset of a HAR file | |
| struct HarContent { | |
| size i64 |
This file contains hidden or 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
| // Returns an element by XPath, recognising elements in shadow DOM too. | |
| // | |
| // For example, a value returned by "Copy full XPath" in developer tools: | |
| // "/html/body/div[1]/main/form/piwo-label[2]/piwo-input//input". | |
| // The part "//" represents the shadow root divider. | |
| // | |
| // The input XPath has to: | |
| // * be an absolute XPath starting with "/html". | |
| // * include segments with tag names only, with an optional element index. | |
| // |
OlderNewer