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
| // This opens a window and sets the opener to the current window, then closes it. | |
| var win = window.open("", "_top", "", true); | |
| win.opener = window; | |
| win.close(); |
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
| [diff] | |
| tool = vsdiffmerge | |
| [difftool] | |
| prompt = false | |
| [difftool "vsdiffmerge"] | |
| cmd = "'C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/vsdiffmerge.exe' $LOCAL $REMOTE //t" | |
| keepbackup = false | |
| trustexitcode = true |
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
| var measureHtmlText = function (text, className) { | |
| var ruler = $('<span>'); | |
| ruler.addClass(className) | |
| .css('display', 'none') | |
| .css('white-space', 'nowrap') | |
| .appendTo($('body')); | |
| ruler.text(text); | |
| var width = ruler.width(); | |
| var height = ruler.height(); | |
| ruler.remove(); |
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
| function measureSvgText(text, className) { | |
| if (!text || text.length === 0) { | |
| return { width: 0, height: 0 }; | |
| } | |
| var svg = d3.select('body').append('svg'); | |
| if (className) { | |
| svg.attr('class', className); | |
| } |
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
| Find: (?<!\r)\n | |
| Replace: \r\n | |
| Using regular expressions |
OlderNewer