(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
%%pageid = 1; | |
%%errormsg_qid = 6; | |
%%completed_percent = 0; | |
%%slider_array = array(4,7,21,22,23,24,25,26); | |
foreach(%%slider_array as %%slider_id){ | |
%%completed_percent = %%completed_percent + sgapiGetValue(%%slider_id); | |
} | |
if (%%completed_percent != 100){ | |
sgapiHideQuestion(%%errormsg_qid,false); |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#! /usr/bin/python | |
# coding=utf-8 | |
import cgi | |
import cgitb | |
cgitb.enable() | |
from datetime import datetime, timedelta | |
import json | |
import os |
javascript: | |
document.querySelectorAll('.load-diff-button').forEach(node => node.click()) |
[package] | |
name = "test" | |
version = "0.1.0" | |
authors = ["YOU <[email protected]>"] | |
edition = "2018" | |
[lib] | |
crate-type = ["cdylib"] |
Migrate [swagger-express-mw] / and underlying [swagger-node-runner] to [express-openapi]
There have been a number of high and critical vulnerabilities caused by the npm package.
I myself have been hunting through ways to figure out how to solve these problems, as the package maintainers seem to have abandonded this library (there was even an NPM fork which still seems to have issues with bagpipes
- see [swagger-node-runner year old PR]). I have created a basic guide to help others out, so that I am not just another DenverCoder9 (https://xkcd.com/979/)
[npm audit] and [snyk] scans find issues like:
In their most used version v4, UUIDs are random, and that's a useful property. But sometimes all you want is a UUID that is easy to remember. To hell with randomness!
A minor complication is that for a string to parse as a valid UUID, the variant and version bits should be set correctly (to 2 and 4, respectively). Here are a few suggestions that pass the test:
facade00-0000-4000-a000-000000000000
decade00-0000-4000-a000-000000000000