Skip to content

Instantly share code, notes, and snippets.

View seiyria's full-sized avatar
🌟
making a game?

Kyle J. Kemp seiyria

🌟
making a game?
View GitHub Profile
const Random = require('random-js').Random;
const TOTAL_SIMULATIONS = 1;
const MAX_PLAYERS = 100000;
const TOTAL_FRIENDS_PER_PLAYER = 0;
const calculateChoices = () => {
const random = new Random();
const ALL_PLAYERS = Array(MAX_PLAYERS).fill(0).map((x, i) => i);
@seiyria
seiyria / cloudSettings
Created June 27, 2020 11:26
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-06-27T11:26:58.795Z","extensionVersion":"v3.4.3"}
import { Directive, EventEmitter, HostListener, Input, OnDestroy, Output } from '@angular/core';
import { combineLatest, interval, Observable, Subject } from 'rxjs';
import { filter, first, map, takeUntil } from 'rxjs/operators';
@Directive({
selector: '[appLongPress]'
})
export class LongPressDirective implements OnDestroy {
@Input() public longPress = 500;
  1. https://www.reddit.com/r/discordapp/comments/sc61n3/cant_inspect_element_anymore/hu4fw5x/ first you need to re-enable the devtools

  2. then you need to enable developer mode. then open devtools with ctrl+shift+i (might need to restart discord first)

  3. run this in devtools Object.defineProperty((webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in e.c)m.push(e.c[c])}]),m).find(m=>m?.exports?.default?.isDeveloper!==void 0).exports.default,"isDeveloper",{get:()=>true});

  4. go to settings > experiments > type in acc > turn on Desktop Multi Account

{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Kyle Kemp",
"label": "Principal Software Engineer",
"image": "",
"email": "[email protected]",
"phone": "9202151371",
"url": "https://seiyria.com",
"summary": "Foreward: I'm only interested in remote positions. I'm not interested in relocating now or ever. Additionally, my career focus is shifting away from development and into architecture and/or other related high level positions.\n\nI am a highly efficient remote developer, able to integrate with teams quickly and provide immediate value to a team. I frequently focus on efficiency in all aspects of my work: code efficiency, onboarding efficiency (writing / validating documentation for onboarding new developers), and developer efficiency (with CI/CD, code review, etc). I never stop thinking about improving business processes \"just because we've always done it that way\" and I make sure to improve these processes
const { exec } = require('child_process');
const { MultiSelect } = require('enquirer');
runCommand('git branch', (result) => {
const branches = parseBranches(result);
const prompt = new MultiSelect({
name: 'Branches',
message: 'Select branches to remove',
choices: branches.map((b) => {