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 { 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) => {
{
"$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
@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

  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

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;
@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"}
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 / Converter.js
Last active November 8, 2018 07:34
Docx -> MediaWiki w/ Images
var fs = require('fs-extra');
var wiki = require('nodemw');
var q = require('q');
var glob = require('glob');
var execSync = require('child_process').execSync;
var logger = require('winston');
var argv = require('minimist')(process.argv.slice(2));
var client = new wiki({
server: 'wiki.server.com',
const octokit = require('@octokit/rest')();
const snake = require('lodash.snakecase');
const fs = require('fs');
octokit.search.issues({
q: 'repo:landoftherair/landoftherair is:open'
})
.then(res => {
res.data.items.forEach(item => {
@seiyria
seiyria / knockout.bootstrap.glyphicon.tree.css
Last active April 2, 2018 03:42
A custom, collapsible navigation tree using knockout.js (and knockout.mapping.js), Bootstrap 3, and glyphicons. Example picture: http://puu.sh/5RWjW.png, fiddle here: http://jsfiddle.net/Ar88e/1/
#nav-bar ul {
list-style-type: none;
}
#nav-bar {
padding-left: 0;
}
#nav-bar > ul {
padding-left: 20px;