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
{ | |
"title":"Frost Prime", | |
"type":"Prime", | |
"supply":{ | |
"count":302, | |
"percentage":0.6801801801801802 | |
}, | |
"demand":{ | |
"count":142, | |
"percentage":0.31981981981981983 |
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
/** | |
* Cache to reduce traffic/disk usage from very active people | |
*/ | |
class Cache { | |
constructor() { | |
this.offers = [] | |
this.duration = 180000 // in ms | |
} | |
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
// 20170628083130 | |
// http://localhost:3010/warframe/v1/players/tobiah/profile | |
{ | |
"name": "tobiah", | |
"accolades": { | |
"founder": "Grand Master", | |
"guide": "Senior Guide of the Lotus", | |
"moderator": false, | |
"partner": false, |
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
/** | |
* Minimalistic Flex Grid in SCSS | |
*/ | |
$breakpoint-m: 75em; | |
$breakpoint-s: 40em; | |
// Rows | |
.row { | |
display: flex; | |
flex-direction: row; |
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
.theme-dark { | |
--text-muted: #808896; | |
--background-primary: #282840; | |
--background-secondary: #212136; | |
--background-secondary-alt: #212136; | |
--background-tertiary: #1c1b29; | |
--scrollbar-thin-thumb: #1c1b29; | |
--scrollbar-auto-thumb: #1c1b29; | |
--scrollbar-auto-track: transparent; | |
--elevation-stroke: 0px transparent; |
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
const request = require('request-promise') | |
async function fetchBuild(uri) { | |
return request({ uri, json: true }) | |
} | |
function getDiff(oldItem, newItem) { | |
if (oldItem.drops && !newItem.drops) { | |
return { item: oldItem.uniqueName, old: oldItem.drops.length, new: 0 } | |
} | |
else if (oldItem.drops && newItem.drops && oldItem.drops.length !== newItem.drops.length) { |