Develop an API endpoint to get a list of users.
DB should have at least 1MM records.
// 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;
}
import {concat, filter, find, isEmpty, intersection, keys, map, not, reduce, uniq} from "ramda"; | |
let theme = "paqmind"; | |
let codemirrorModes = { | |
"css": ["css"], | |
"clojure": ["clj", "clojure"], | |
"javascript": ["js", "javascript", "es"], | |
"jinja2": ["jinja2"], | |
"haskell": ["hs", "haskell"], | |
"htmlmixed": ["html"], |
let R = require("ramda"); | |
let data = [ | |
{id: "6", manufacturer: "Russia"}, | |
{id: "5", manufacturer: "USA"}, | |
{id: "3", manufacturer: "China"}, | |
{id: "2", manufacturer: "USA"}, | |
{id: "4", manufacturer: "Russia"}, | |
{id: "1", manufacturer: "RUSSIA"}, | |
{id: "1", manufacturer: "Xyz"}, |
<div class="container"> | |
<div class="sprite"> | |
<p> | |
Test | |
</p> | |
</div> | |
</div> | |
<style> | |
.container { |
// Sequence of promises | |
let promise = Q(); | |
let result = []; | |
R.forEach(page => { | |
promise = promise.then(r => { | |
result = R.merge(r, result); | |
return fetch(page); | |
}); | |
}, R.range(0, pages)); |
var R = require("ramda"); | |
function getRandomInt(min, max) { | |
return Math.floor(Math.random() * (max - min + 1)) + min; | |
} | |
function generateNumberList(size) { | |
return R.map(i => getRandomInt(0, size), R.range(0, size)); | |
} |