Skip to content

Instantly share code, notes, and snippets.

@joshhunt
joshhunt / code.js
Last active September 9, 2020 11:32
window.$DestinyVendorDefinition
.filter((v) => v.interactions.length > 0)
.map((vendor) => ({
hash: vendor.hash,
name: vendor.displayProperties.name,
interactions: vendor.interactions
.map(
(v) =>
v.headerDisplayProperties.name
.toLowerCase()
const round = (num) => Math.round((num + Number.EPSILON) * 100) / 100;
const DAYS_IN_A_YEAR = 365;
const VAT_MULTIPLIER = 1.05;
function priceCommand(plans, _annualUsage) {
const annualUsage = parseInt(_annualUsage);
const results = plans
.map((plan) => {
@joshhunt
joshhunt / profiles.json
Last active August 3, 2020 00:07
Players with the "After the Nightfall" emblem
[
{
"membershipId": "4611686018432827035",
"membershipType": 1,
"collectibleState": 16
},
{
"membershipId": "4611686018438475521",
"membershipType": 2,
"collectibleState": 32
{
"Response": {
"profiles": [
{
"dateLastPlayed": "2020-07-21T18:32:22Z",
"isOverridden": false,
"isCrossSavePrimary": true,
"platformSilver": {
"platformSilver": {
"TigerPsn": {
#SingleInstance, force
#NoEnv
#MaxThreadsPerHotkey 2
f7::
Toggle := !Toggle
loop
{
If not Toggle
break
#SingleInstance, force
#NoEnv
#MaxThreadsPerHotkey 2
f9::
Toggle := !Toggle
loop
{
If not Toggle
break
#SingleInstance, force
#NoEnv
#MaxThreadsPerHotkey 2
f7::
Toggle := !Toggle
loop
{
If not Toggle
break
@joshhunt
joshhunt / _query.sql
Created November 14, 2019 22:11
sample stadia matches
SELECT distinct on ("mode") mode, * from "Activities" where "primaryMembershipType" = 5;
Dark Glimmer General Armor Mod enhancements.v2_general Mods 59Armor Mods 4104513227