Skip to content

Instantly share code, notes, and snippets.

View Benjamin-Dobell's full-sized avatar

Benjamin Dobell Benjamin-Dobell

View GitHub Profile
@Benjamin-Dobell
Benjamin-Dobell / gist:68b3353a2469b646854a814aaa6f0e54
Created July 23, 2019 19:49
SteamKit Matchmaking Integration Test Ouput
Cloning https://github.com/Benjamin-Dobell/SteamKit.git:matchmaking...
Cloning into 'SteamKit'...
Submodule 'Resources/Protobufs' (https://github.com/steamdatabase/protobufs.git) registered for path 'Resources/Protobufs'
Cloning into '/app/SteamKit/Resources/Protobufs'...
Submodule path 'Resources/Protobufs': checked out 'd8aa67feea3ce8147072d893418ef69292213730'
Building integration tests...
Restore completed in 7.8 sec for /app/SteamKit/SteamKit2/SteamKit2/SteamKit2.csproj.
Restore completed in 10.38 sec for /app/SteamKitIntegrationTests/SteamKitIntegrationTests.csproj.
Microsoft (R) Build Engine version 16.1.76+g14b0a930a7 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
@Benjamin-Dobell
Benjamin-Dobell / all-cards-to-issues.js
Last active October 27, 2019 15:19
all-cards-to-issues.js
const PROJECT_BOARD_URL = "https://github.com/glassechidna/prototypeinertia/projects/2"
document.querySelectorAll('.issue-card').forEach(function(node) {
if (node.getAttribute('data-card-type') == "[\"issue\"]") { return }
var cardId = node.getAttribute('data-card-id');
var title = node.querySelector('.js-comment-body > p').textContent
var authenticityToken = node.querySelector('template').content.querySelector('input[name="authenticity_token"').value
var clientUid = document.querySelectorAll('.issue-card')[1].querySelector('template').content.querySelector('input[name="client_uid"').value
@Benjamin-Dobell
Benjamin-Dobell / 1.png
Last active July 15, 2020 17:17
EmmyLua Definition File
1.png
@Benjamin-Dobell
Benjamin-Dobell / sample.js
Created August 5, 2021 02:12
Snaploader - Preview Interactive Nodes Sample Code
var interactiveNodesElement = document.getElementById('interactive-nodes');
var viewerElement = document.getElementById('viewer3d');
var interactiveNodes = JSON.parse(viewerElement.getAttribute('data-interactive-nodes'));
var interactiveNodeOptions = {};
for (var i = 0; i < interactiveNodes.length; i++) {
var nodeName = interactiveNodes[i];
interactiveNodeOptions[nodeName] = {};