Skip to content

Instantly share code, notes, and snippets.

Josh Hunt joshhunt

Block or report user

Report or block joshhunt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View inspector.js
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);
View messages-proxy.js
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 Jul 1, 2018
Destiny Sets Google Drive troubleshooting
View readme.md

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:

View hello.js
class Base {
constructor() {
this.hello = 'world';
}
}
class Wowee extends Base {
constructor() {
super();
}
View niche.js
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(
View Readme.md
  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 Dec 8, 2017
S2 Ghost Perks
View 1_summary.md
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
View Weapon.js
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'
View item.json
{
"displayProperties": {
"description": "The Ghost Primus was strong because of his disfigurement, not in spite of it. He alone had the vision to share my dream of a new, perfect world. Ghaul was a creature of singular beauty, and I loved him.",
"name": "Ghost Primus",
"icon": "/common/destiny2_content/icons/36ff239bd2629635c04f08a6487d1eed.jpg",
"hasIcon": true
},
"backgroundColor": {
"colorHash": 0,
"red": 255,
You can’t perform that action at this time.