Skip to content

Instantly share code, notes, and snippets.

! name: Brave.com
! description: Site search for brave.com
! public: false
! author: Me
$discard
|https://brave.com/$site=brave.com
Start building sites …
hugo v0.84.4+extended darwin/amd64 BuildDate=unknown
.File.ContentBaseName on zero object. Wrap it in if or with: {{ with .File }}{{ .ContentBaseName }}{{ end }}
WARN 2021/08/18 18:51:44 found no layout file for "HTML" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/08/18 18:51:44 found no layout file for "HTML" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
fatal error: concurrent map writes
goroutine 491 [running]:
runtime.throw(0x5b4dd5e, 0x15)
runtime/panic.go:1117 +0x72 fp=0xc007a56578 sp=0xc007a56548 pc=0x403d072
Start building sites …
fatal error: concurrent map writes
fatal error: concurrent map writes
goroutine 111 [running]:
runtime.throw(0x21a3f0d, 0x15)
/usr/local/go/src/runtime/panic.go:1116 +0x72 fp=0xc001a296c0 sp=0xc001a29690 pc=0x4f5f72
runtime.mapassign_faststr(0x20f3dc0, 0xc00090bc20, 0x21544c6, 0x8, 0xc000934668)
/usr/local/go/src/runtime/map_faststr.go:291 +0x3d8 fp=0xc001a29728 sp=0xc001a296c0 pc=0x4d31f8
github.com/gohugoio/hugo/hugofs.(*Walkway).walk(0xc001907320, 0xc001905440, 0x9, 0x2646360, 0xc0020a0060, 0xc001887e00, 0x4, 0x4, 0xc001887c40, 0x1f1cbe0, ...)
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc004327948, 0x59a65c0, 0xc0025b53b0, 0x15, 0xc000f78180, 0xc004bed900, 0x194, 0x6164101)
/private/tmp/hugo-20200915-67363-21w9wr/hugo-0.75.1/src/github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:431 +0x125
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc004327948, 0x59a65c0, 0xc0025b53b0, 0x15, 0x6154d60, 0xc0009b6930)
/private/tmp/hugo-20200915-67363-21w9wr/hugo-0.75.1/src/github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:255 +0x335
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc004327948, 0x59a65c0, 0xc0025b53b0, 0x15, 0x61550c0, 0xc0009db6e0)
/private/tmp/hugo-20200915-67363-21w9wr/hugo-0.75.1/src/github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate/exec.go:263 +0x11e
github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkIfOrWith(0xc005b39948, 0x13, 0x5973c80, 0xc004bed900,
FILE: /Users/jacoblamont/Sites/phpsniffer/plugins/autoupdater/tmpl/configuration.tmpl.php
--------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AND 1 WARNING AFFECTING 11 LINES
--------------------------------------------------------------------------------------------------------
4 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in
| | the WordPress Developer Handbooks), found '$template_enabled'.
6 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in
| | the WordPress Developer Handbooks), found '__'.
6 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in
| | the WordPress Developer Handbooks), found '$plugin_name'.
FILE: /Users/jacoblamont/Sites/phpsniffer/plugins/autoupdater/tmpl/configuration.tmpl.php
--------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AND 1 WARNING AFFECTING 11 LINES
--------------------------------------------------------------------------------------------------------
4 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in
| | the WordPress Developer Handbooks), found '$template_enabled'.
6 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in
| | the WordPress Developer Handbooks), found '__'.
6 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in
@AlanBreck
AlanBreck / cloudSettings
Last active September 23, 2019 23:32
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-09-23T23:32:21.123Z","extensionVersion":"v3.4.2"}
updateProgress = () => {
this.setState({ progress: 0 });
const min = 1;
const max = 60;
const totalTime = Math.floor(Math.random() * (max - min + 1) + min);
let counter = 0;
var progInterval = setInterval(() => {
counter++;
const jobsArray = [].slice.call( jobs );
const jobsToInvoice = jobsArray.map( job => ({
name: job.name,
quantity: 1,
unit_price: {
currency: "USD",
value: job.cost
}
}));
var testArray1 = [1, 0, -1]; // expected [-1, 1]
var testArray2 = [1, 1, 1, 1, 1, 1]; // expected [1, 1]
var testArray3 = []; //expected []
function getBounds ( intArray ) {
var MIN_INT;
var MAX_INT;
if ( intArray.length <= 0 ) return [];