Skip to content

Instantly share code, notes, and snippets.

@jvmccarthy
jvmccarthy / jsbarcode-simple.html
Created January 3, 2023 02:22
Playing with JSBarcode
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/JsBarcode.all.min.js"></script>
<style>
* {
font-family: sans-serif;
}
</style>
</head>
<body>
@jvmccarthy
jvmccarthy / dependency-check-log.txt
Created December 10, 2018 17:55
Dependency Check log for issue where NPM severity is incorrect
2018-12-10 10:35:08,672 org.owasp.dependencycheck.utils.Settings:657
DEBUG - Setting: data.directory='%DOWNLOADS%\dependency-check-4.0.0-release\dependency-check\bin\..\data'
2018-12-10 10:35:08,672 org.owasp.dependencycheck.utils.Settings:657
DEBUG - Setting: proxy.server=%HTTP_PROXY_SEVER%
2018-12-10 10:35:08,672 org.owasp.dependencycheck.utils.Settings:657
DEBUG - Setting: proxy.port=%HTTP_PROXY_PORT%
2018-12-10 10:35:08,672 org.owasp.dependencycheck.utils.Settings:657
DEBUG - Setting: analyzer.jar.enabled='true'
2018-12-10 10:35:08,672 org.owasp.dependencycheck.utils.Settings:657
DEBUG - Setting: analyzer.archive.enabled='true'
@jvmccarthy
jvmccarthy / bootstrap-material-hide-workaround.scss
Last active October 16, 2017 13:04
Extension of angular-material#5317 workaround to including the extra small (xs) layout adding in angular-material 1.0
// Updated workaround from https://github.com/angular/material/issues/5317#issuecomment-150917005
// See https://github.com/angular/material/blob/v1.0.5/src/core/style/variables.scss#L30
// for $layout-* variable definitions.
@media (max-width: $layout-breakpoint-xs - 1) {
.show, .show-xs {
&.hide {
display: block !important;
}
}
}
"use strict";
var PFParser = require("pdf2json");
var pdfParser = new PFParser();
pdfParser.on("pdfParser_dataReady", function(data) {
console.log('pdf file: ' + data.pdfFilePath);
console.log('page count: ' + data.data.Pages.length);
console.log('\n\n');
@jvmccarthy
jvmccarthy / jenkins_warnings_ruby-lint.md
Last active August 29, 2015 13:56
Jenkins Warnings Parser for ruby-lint

UI settings to define a Jenkins Warnings parser for ruby-lint

(in Manage Jenkins → Configure System)

Name, Link name, & Trend report name:

ruby-lint

Regular Expression: