Skip to content

Instantly share code, notes, and snippets.

View Kaptard's full-sized avatar

Kilian Kaptard

  • 06:43 (UTC +02:00)
View GitHub Profile
@Kaptard
Kaptard / compare.js
Created September 14, 2020 10:26
warframe-items drop mismatch
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) {
@Kaptard
Kaptard / theme.css
Last active July 4, 2020 06:25
Discord skin based on their new website
.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;
@Kaptard
Kaptard / grid.scss
Last active October 7, 2017 19:24
Minimalistic Flex Grid in SCSS
/**
* Minimalistic Flex Grid in SCSS
*/
$breakpoint-m: 75em;
$breakpoint-s: 40em;
// Rows
.row {
display: flex;
flex-direction: row;
// 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,
/**
* Cache to reduce traffic/disk usage from very active people
*/
class Cache {
constructor() {
this.offers = []
this.duration = 180000 // in ms
}
@Kaptard
Kaptard / preview.json
Last active May 8, 2017 06:38
nexus-stats api output format preview
{
"title":"Frost Prime",
"type":"Prime",
"supply":{
"count":302,
"percentage":0.6801801801801802
},
"demand":{
"count":142,
"percentage":0.31981981981981983