// --------------------------------------------- SERVER CODE --------------------------------------------- //
app.get('/rooms/:id/pictures', function (req, res) {
console.log('hello');
findPicturesByRoomId(req.params.id)
.then(function (images) {
res.send(images.image_url);
});
});
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> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div class="renderbox"> | |
<style scoped> |
#QUERIES (NO PRIMARY KEYS) CASSANDRA (DAY ONE)
category_id | clustering_id | bed | cost | description | favorite | picture| premium | rcount | stars | title 1 | 999999 | 6 | 102 | Ut quis mollit est labore reprehenderit. Consequat culpa fugiat aliqua dolore enim exercitation tempor incididunt laborum et laboris amet ad elit. Elit mollit anim culpa sit aute cillum enim magna ut ea consequat id irure. | False | http://d1bah53dmo2q93.cloudfront.net/999.jpg | True | 1396 | 5 | Ullamco irure quis minim enim enim amet fugiat eiusmod anim proident.
(1 rows)
- Tracing session: 9a986dc0-16c5-11e9-8208-b3a911c7ed43
- activity | timestamp | source | source_elapsed | client
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'; | |
export const options = { | |
vus: 200, | |
duration: '600s', | |
}; | |
const randomRoom = Math.floor(Math.random() * (1000000) + 1000000); | |
export default function () { |
- As a user I want to complete this course without using my cloud or using the local version of the db.
The instructions here will both be imperative and declarative. It wont have any answers to the course. It will just be a collection of thoughts and deep dives into the code.
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
license: mit |
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
license: mit |
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
console.clear(); | |
function DomManipulator() { | |
this.error = null; | |
this.active = false; | |
this.toggleActive = function toggleActive(shouldSetActiveSetInactive) { | |
// is this a static method? | |
if (typeof shouldSetActiveSetInactive === 'boolean') { | |
this.active = shouldSetActiveSetInactive; | |
} else { |
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
# @usage checkiff master | |
# @param {posix1} branchname | |
# @desc notifies you whether local master is the same as origin/master | |
# (only works in zshell, in bash the piping generaes a subshell) | |
function checkdiff() { | |
git fetch; | |
git diff $1 origin/$1 | wc -l | {read wc}; | |
if (test $wc -ne "0") | |
then | |
echo $wc |
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
: << 'END_COMMENT' | |
Place this function in your ~/.p10k.zsh file | |
1) Detects your poetry env, (whehter or not you've entered the directory of your poetry app) | |
2) Detects whether or not shell is active. (POETRY_ACTIVE) | |
3) append my_poetry like so: | |
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=( | |
... | |
my_poetry | |
) |
OlderNewer