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
@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

@seiyria
seiyria / README.md
Last active June 18, 2022 18:00
Common Pitfalls in JS-based Games

update: this post has been moved to my blog

Welcome! You might be reading this out of curiosity, or because you want to improve your programming capabilities to stop people from exploiting your JS games. Given that the first thing I do when I open a new incremental is open the terminal and start messing around with your games, I figured it's about time to write something about what I see and how I break your games. Consequently, I'll describe ways you can protect your games from the basic code manipulations I perform. Some might say "you're just ruining the game for yourself!" while I'm going to turn around and say "I don't care" -- that's not the point of this!

NB: This will only apply to vanilla JS applications, which I see more commonly. Frameworks like AngularJS and such are out of scope for this post. Advanced techniques such as using a debugger, while slightly more on topic, will also be disregarded for now.

Le

{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Kyle Kemp",
"label": "Principal Software Engineer",
"image": "",
"email": "kyle@seiyria.com",
"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) => {