Ingredients for 5 portions
- Chicken breast 800g
- Cheese 250g
- Tortilla 625g (10pc)
- Canned corn 250g
- Bell peppers 250g
- Onions 125g
func ExtractStacktrace(err error) *Stacktrace { | |
// https://github.com/pkg/errors | |
// Packages definitions: | |
// type Frame []uintptr | |
// type StackTrace []Frame | |
type stackTracer interface { | |
StackTrace() errors.StackTrace | |
} |
const express = require("express"); | |
const Sentry = require("@sentry/node"); | |
const api = express(); | |
Sentry.init({ | |
dsn: "http://[email protected]/12", | |
environment: "development", | |
beforeSend(event) { | |
console.log("beforeSend", event.user.id); |
const Sentry = require("@sentry/node"); | |
const DELIVERY_TIME = process.argv[2]; | |
const TIMEOUT = process.argv[3]; | |
console.log(`\nDelivery time: ${DELIVERY_TIME / 1000}s`); | |
console.log(`Timeout: ${TIMEOUT / 1000}s`); | |
// @ignore-start Helper function | |
async function sleep() { |
window.GoogleCdn = {} | |
window.GoogleCdn.inject = function () { | |
internalMethod() | |
} | |
function internalMethod () { | |
throw new Error('dupa') | |
} |
const entrySelector = "#itemsStream > .entry"; | |
const entries = document.querySelectorAll(entrySelector); | |
const outlineStyle = "2px solid rgba(108, 176, 221, 0.8)"; | |
const activeClassName = "vimLikeActive"; | |
document.addEventListener("keypress", evt => { | |
if (document.activeElement !== document.body) return; | |
if (evt.key === "j") return down(); | |
if (evt.key === "k") return up(); | |
}); |
function externalLibrary (date) { | |
throw new Error(`externalLibrary method broken: ${date}`); | |
} | |
externalLibrary(Date.now()); |
function externalLibrary (date) { | |
throw new Error(`externalLibrary method broken: ${date}`); | |
} | |
externalLibrary(Date.now()); |
const { damage } = require("./spell"); | |
console.assert(2 === damage("feeai")); // == 2 | |
console.assert(7 === damage("feaineain")); // == 1 + 2 + 2 + 2 = 7 (fe-ai-ne-ai) - not (fe-ain-ai) because 1+3+2 = 6 and 7 > 6 | |
console.assert(0 === damage("jee")); // == 0 | |
console.assert(0 === damage("fefefefefeaiaiaiaiai")); // == 0 (more than one 'fe') | |
console.assert(1 === damage("fdafafeajain")); // == 1 (fe-ai) 3 - 2 (because 'aj') | |
console.assert(0 === damage("fexxxxxxxxxxai")); // == 0 (3-10 = -7 < 0) |
const env = process.env.NODE_ENV | |
const task = process.env.npm_lifecycle_event | |
const packageJSON = require('../package.json') | |
const availableEnvironments = Object.keys(packageJSON.scripts) | |
.filter(key => key.startsWith(task)) | |
.map(key => key.split(':')[1]) | |
.filter(key => key) | |
function displayMessage (message) { | |
console.error(`${'='.repeat(message.length)}\n${message}\n${'='.repeat(message.length)}`) |