This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import http from 'k6/http'; | |
import { check, sleep } from 'k6'; | |
//If you want to avoid having to type --vus 10 and --duration 30s | |
export let options = { | |
vus: 50, | |
rps: 2000, | |
duration: '1m' | |
}; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import http from 'k6/http'; | |
import { check, sleep } from 'k6'; | |
//If you want to avoid having to type --vus 10 and --duration 30s | |
export let options = { | |
vus: 500, | |
rps: 2000, | |
duration: '1m' | |
}; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import http from 'k6/http'; | |
import { check, sleep } from 'k6'; | |
//If you want to avoid having to type --vus 10 and --duration 30s | |
export let options = { | |
vus: 500, | |
rps: 2000, | |
duration: '1m' | |
}; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Postgres | |
-- Read | |
select * from popularsongs.artists, popularsongs.albums, popularsongs.songs where artists.id = 9999999 and albums."artistID"= artists.id and songs."artistID"=artists.id; | |
-- Insert | |
INSERT INTO "popularsongs"."albums"("artistID", "name", "imageUrl", "yearPublished") VALUES(1000001, 'John Doe', 'wwww.clonethis.com', 1999) RETURNING "artistID", "name", "imageUrl", "yearPublished"; | |
-- Cassandra |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Document</title> | |
<link href="./styles.css" rel="stylesheet" type="text/css" /> | |
</head> | |
<body> | |
<div id="app"> | |
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/recommendations/1 | |
[ | |
{ | |
"publicationsList": [ | |
{ | |
"img": "http://lorempixel.com/640/480/nightlife", | |
"title": "quibusdam quisquam iusto", | |
"url": "http://lorempixel.com/640/480" | |
}, | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//No pseudocode as requested by prompt | |
function CashAmount(val) { | |
this.val = val; | |
console.log(this.val); | |
} | |
CashAmount.prototype.totalInPennies = function(val) { | |
return this.val * 100; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @JOHN DO NOT CONTINUE. | |
// this is all original code, nothing added. | |
// sorry you read this far. | |
// ORIGINAL | |
const dog = { | |
name: 'Scout', | |
breed: ['Husky', 'German Shepherd'], | |
age: 4, | |
happiness: 50, |