This file contains 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
<script lang="ts"> | |
import { PrismiceEmbed } from "@prismicio/types" | |
export let embedCode; | |
export let classes = ""; | |
export let responsive = false; | |
export let background = false // only for Vimeo chromeless videos | |
let htmlCode = embedCode.html | |
if (background) { |
This file contains 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
// Start with an OCEAN model, for example: | |
// LGBTI | |
// O: 75 | |
// C: 30 | |
// E: 75 | |
// A: 45 | |
// N: 65 | |
// Here we assign the weights for each of the scales | |
// SCALE X |
This file contains 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
let people = ['Jack', 'John', 'James']; | |
let colors = ['red', 'blue', 'green']; | |
console.log(people); | |
console.log(colors); | |
// Length of an array | |
console.log(colors.length) | |
// Add purple |
This file contains 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
{ | |
"MUST": [ | |
{ | |
"MATCH": { | |
"predicted_lexicology_v1_1": { | |
"id": "744fdb65-8810-4a48-a16f-4238d6d814c9", | |
"value": "[90:100]" | |
} | |
} | |
} |
This file contains 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
[ | |
{ | |
"id": "ecc592c2-808f-a3f7-5e1f-c9108584e61f", | |
"category_name": "situation", | |
"name": "Adrenaline (Sports & Action)", | |
"description": "" | |
}, | |
{ | |
"id": "9be268c7-674b-4bd3-a2a3-a8883d347aa7", | |
"category_name": "mood", |
This file contains 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
{ | |
"tracks": { | |
"href": "https://api.spotify.com/v1/search?query=isrc%3AFR59R1779926&type=track&offset=0&limit=20", | |
"next": null, | |
"items": [ | |
{ | |
"id": "1bJXuE8HHh3KnNOBhAk3xK", | |
"uri": "spotify:track:1bJXuE8HHh3KnNOBhAk3xK", | |
"href": "https://api.spotify.com/v1/tracks/1bJXuE8HHh3KnNOBhAk3xK", | |
"name": "Just Feel Alright", |
This file contains 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
/** | |
* | |
* @param {Number} num | |
* @param {Number} in_min | |
* @param {Number} in_max | |
* @param {Number} out_min | |
* @param {Number} out_max | |
*/ | |
mapValues(num, in_min, in_max, out_min, out_max) { | |
return (num - in_min) * (out_max - out_min) / (in_max - in_min) + out_min |
This file contains 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
[ | |
{ | |
"category": "genre", | |
"uid": "32e195f0-f5c9-4646-b76c-b4a68cc11be2", | |
"percentage": 100, | |
"color": "rgb(53, 204, 113)", | |
"catIndex": 0, | |
"subcatIndex": 0 | |
}, | |
{ |
This file contains 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
{ | |
"MUST": [ | |
{ | |
"MATCH": { | |
"predicted_lexicology_v1_1": { | |
"id": "d004e500-719d-4880-9eec-1e76cabeec11", | |
"value": "[80:100]" | |
} | |
} | |
} |
This file contains 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
Request: | |
{ | |
"SHOULD": [ | |
{ | |
"MATCH": { | |
"predicted_lexicology_v1_2": { | |
"id": "4a3b3492-8a7e-413f-9d8c-bcc76a1c2ad2", | |
"value": "[50:100]" | |
} |
NewerOlder