This file contains 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
import React from 'react'; | |
import { Global } from 'recharts'; | |
import { htmlSvgToPdfSvg } from '../imageFromSvg'; | |
export const ChartSvg = ({ debug, style, children, width, height }) => { | |
return chartToPdfSvg(children, width, height, debug, style); | |
}; | |
const chartToPdfSvg = (children, width, height, debug, style) => { |
This file contains 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
const fs = require('fs'); | |
const fileFormatter = require('eslint/lib/cli-engine/formatters/html'); | |
const outputFormatter = require('eslint/lib/cli-engine/formatters/stylish'); | |
function formatter(results = [], data) { | |
saveA11yReport(results, data); | |
const output = outputFormatter(results, data); | |
return output; |
This file contains 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
### See what's running on port | |
netstat -a -n -o | grep 5556 | |
### App name using port | |
tasklist /v | grep 5556 | |
### Another variant but requires elevated privileges | |
netstat -anob | |
### Serach cmder history with grep |
This file contains 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
new Array(100).fill(1) | |
.map((_, i) => { | |
const current = i + 1; | |
let text = ''; | |
if (current % 3 === 0) text += 'Fizz'; | |
if (current % 5 === 0) text += 'Buzz'; | |
return text || current; |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<RuleSet Name="HQC Global Rules" Description="These rules focus on the most critical problems in your code, including potential security holes, application crashes, and other important logic and design errors. It is recommended to include this rule set in any custom rule set you create for your projects. The ruleset includes StyleCop settings as well." ToolsVersion="14.0"> | |
<Localization ResourceAssembly="Microsoft.VisualStudio.CodeAnalysis.RuleSets.Strings.dll" ResourceBaseName="Microsoft.VisualStudio.CodeAnalysis.RuleSets.Strings.Localized"> | |
<Name Resource="MinimumRecommendedRules_Name" /> | |
<Description Resource="MinimumRecommendedRules_Description" /> | |
</Localization> | |
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed"> | |
<Rule Id="CA1001" Action="Warning" /> | |
<Rule Id="CA1009" Action="Warning" /> | |
<Rule Id="CA1016" Action="Warning" /> |