Skip to content

Instantly share code, notes, and snippets.

<mat-selection-list>
<mat-list-option checkboxPosition="before">
<button mat-icon-button>
<mat-icon color="primary" [customTooltipTrigger]="tooltipSql">info</mat-icon>
</button>
SQL injection (SQLI)
</mat-list-option>
<mat-list-option checkboxPosition="before">
<button mat-icon-button>
@pmstss
pmstss / demo.component.html
Created July 19, 2020 15:27
Test Task v2
<mat-selection-list>
<mat-list-option checkboxPosition="before">
<button mat-icon-button>
<mat-icon color="primary" [customTooltipTrigger]="tooltipSql">info</mat-icon>
</button>
SQL injection (SQLI)
</mat-list-option>
<mat-list-option checkboxPosition="before">
<button mat-icon-button>
@pmstss
pmstss / json-syntax-error-cases.js
Last active January 20, 2022 09:53
Chrome/FF differences in SyntaxError wording on JSON.parse()
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/JSON_bad_parse
let errorCases = [
{
source: '[1, 2, 3, 4,]',
cause: 'JSON.parse() does not allow trailing commas',
mdn: `SyntaxError JSON.parse: unexpected character`,
ff: `JSON.parse: unexpected character at line 1 column 13 of the JSON data`,
node: `Unexpected token ] in JSON at position 12`
},
@pmstss
pmstss / yaml-serializer.js
Created February 7, 2022 09:27
References in js-yaml serializer output
const yaml = require('js-yaml');
const auxObj = {
x: 0,
y: 1
}
const obj = {
a: auxObj,
b: auxObj,