Develop an API endpoint to get a list of users.
DB should have at least 1MM records.
// Theory | |
// http://htmlpurifier.org/live/smoketests/xssAttacks.php | |
// https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet | |
// A full collection of HTML5 related XSS attack vectors: | |
// https://github.com/cure53/H5SC https://raw.githubusercontent.com/cure53/H5SC/master/vectors.txt | |
// Short list | |
<script>alert("XSS: script tag")</script> | |
<script src="http://hackers-site.powertofly.com"></script> |
// How it works: https://youtu.be/IbfsvI6dh4U | |
@textFontSize: 20px; | |
@lineHeight: 1.5rem; | |
// Set up font size and line-height | |
html { | |
font-size: @textFontSize; | |
} |
Based on https://msdn.microsoft.com/en-us/library/ee658094.aspx#Interoperability
Conceptual integrity defines the consistency and coherence of the overall design. This includes the way that components or modules are designed, as well as factors such as coding style and variable naming.
Can be achived by
Using: Flask, SQLAlchemy, Infinite-scroll
// Get list of prices of saled products that are below 1000, ordered by ASC | |
var sales = [ | |
{id: 1, price: "500"}, | |
{id: 2, price: "1500"}, | |
{id: 3, price: "750"}, | |
{id: 4, price: "1750"}, | |
{id: 5, price: "150"}, | |
{id: 3, price: "750"}, | |
]; |
px
, em
, rem
<style>
html, body {
font-size: 10px;
}
div {
font-size: 15px;
}
{% macro form_field(form, field, print_status=True) -%} | |
{% set has_label = kwargs.pop('has_label', True) %} | |
{% set placeholder = '' %} | |
{% if not has_label %} | |
{% set placeholder = field.label.text %} | |
{% endif %} | |
{% set field_status = '' %} | |
{% if form.errors and (form.submitted or (form.is_submitted() and form.submit.data)) %} | |
{# form.submit.data for support multiple forms on page #} | |
{# form.submitted - manual control for form without button (ajax) #} |
Install / Update node modules
npm install
List of installed modules
npm list
npm list -g
npm list --depth=0