Skip to content

Instantly share code, notes, and snippets.

html = itemDefs
.filter(v => v.itemCategoryHashes)
.filter(v => v.itemCategoryHashes.includes(4104513227)) // armour mods
.filter(v => v.plug && v.plug.energyCost) // exlude ornaments
.sort((a, b) => a.index - b.index)
.map(i => `<tr>
	<td><img src="https://bungie.net${i.displayProperties.icon}" width="30" height="30"> </td>
	<td>${i.displayProperties.name}</td>
	${i.itemTypeDisplayName}
@joshhunt
joshhunt / godrolls.json
Last active November 23, 2018 15:57
mercules69
{ version: 2}
inspector = options => {
// apiKey for api.braytech.org (to do)
if (!inspector.init) {
inspector.init = true;
var inspectorWindow = document.createElement('div');
inspectorWindow.setAttribute('id', 'inspector');
document.body.appendChild(inspectorWindow);
const makeMessages = (src = {}, path = []) =>
new Proxy(src, {
get(target, name) {
const newPath = [...path, name];
// For _any_ key on messages, return a function that returns the string-path to that key.
// Also, wrap that function in this proxy to do the same for any key on the function
return makeMessages(() => newPath.join('.'), newPath);
}
});
@joshhunt
joshhunt / readme.md
Last active July 1, 2018 01:55
Destiny Sets Google Drive troubleshooting

I'm hearing reports of the Google Drive integration used to track dismantled items is misbehaving. This is tricky for me to debug because its not happening to me, and I can't see users stored inventory as the database is private to your Google Drive.

To help me out, there's a few things I'm trying to collect.

  1. What device do you use to access the website?
  2. If you use multiple devices, does it behave differently on the different computers?
  3. Do you have your Bungie account connected to multiple platforms (e.g. Xbox and PC)? In the header on DestinySets.com, are there multiple platforms listed when you click your gamertag?

Additionally, would you mind heading to https://destinysets.com/debug and wait a few seconds for things to load. There's two things here that we're interested in:

class Base {
constructor() {
this.hello = 'world';
}
}
class Wowee extends Base {
constructor() {
super();
}
function objectivesFromVendors(data) {
// return fp.flow(
// fp.flatMap(character => character.itemComponents),
// fp.flatMap(vendor => vendor.plugStates.data),
// fp.flatMap(plugStates => plugStates.plugObjectives)
// )(data);
return fp.flatMap(
character =>
fp.flatMap(
  1. Get Milestones from /Platform/Destiny2/Milestones/
  2. Flashpoint (it's actually referred to as Hotspot in the defs) hash is 463010297
  3. milestones[463010297].availableQuests[0].questItemHash is the hash that will tell you where the Flashpoint is
  4. Use the Flashpoint quest item hash to infer where Xur is
@joshhunt
joshhunt / 1_summary.md
Last active December 8, 2017 00:29
S2 Ghost Perks
Ghost Item Hash Ghost perk type
Pintail Ghost 89965904 Io
Iris Map Shell 89965905 EDZ
Viceroy Shell 89965906 Titan
Upward Climber Shell 89965907 Titan
Captaincy Shell 89965908 Strike, Vanguard
Precious Metals Shell 89965909 Mercury
Kaleidoscope Shell 89965910 EDZ
In Fine Omnium Shell 89965911 Mercury
import 'isomorphic-fetch'; // for older browsers https://caniuse.com/#search=Fetch
import React, { Component } from 'react';
import 'styles.css';
export default class Weapon extends Component {
componentDidMount() {
const options = {
headers: {
'x-api-key': 'abc-123'