We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 2.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APP_ID,APP_NAME,APP_START_CMD | |
565060,Avorion,AvorionServer/server.sh --galaxy-name "Expert 2-3-0" --admin ryunp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Author: Ryan Paul | |
; Date: 9/3/22 | |
; Target_Game: Wreckfest | |
; Description: Automated driving for high returns custom game spam | |
#NoEnv | |
SendMode Input | |
SetWorkingDir %A_ScriptDir% | |
SetTitleMatchMode, 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Cute Typer Test</title> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace ConcurrencyTest | |
{ | |
class Program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Date: 2/29/20 | |
* Author: Ryan Paul | |
* Description: | |
* Oversimplified API mockup with paginated query behavior, | |
* testing async generator functions with async iterators. | |
*/ | |
// Stateless helpers | |
var randBetween = (min, max) => min + Math.floor(Math.random() * (max - min)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Change files on filesystem and/or config to see error handling */ | |
// Simulate configurations | |
config = { installPath: 'root/place/subplace' } | |
d2config = { | |
files: [ | |
'a.dll', | |
'abc.txt', | |
'deeper/d.txt' | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Ryan Paul 12/25/19 | |
A debouncer wraps a function with a delayed execution timer. | |
Calling the debounced function before the delay elapsed will reset the | |
execution timer. | |
*/ | |
function debounce (callback, delay) { | |
var timer = null | |
function delayExecution (...args) { | |
if (timer) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Mock File System | |
var files = new Map([ | |
["settings.json", '{"updateInterval": 1800000,"channelName":"myChannel"}'] | |
]) | |
// Mock File IO interface | |
var fsPromises = { | |
readFile: function readFile (path) { | |
const resolver = (resolve) => { | |
setTimeout(() => resolve(files.get(path)), 2000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* There are basically 3 solutions for async programming, and 2 of which are with related to Promises. */ | |
/* Promises Notation (#1 & #2) */ | |
// The Promise definition | |
function timedAction() { | |
return new Promise(resolve => { | |
setTimeout(() => { resolve('done') }, 2000) | |
}) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author: Ryan Paul | |
Date: 12/03/18 | |
Description: Extracted code showing iterations over basic file existence functionality | |
Environment: Node.js | |
*/ | |
// Iteation 1: Initial attempt: | |
function isInstalled(installPath) { | |
const fileNames = ['Game.exe', 'Diablo II.exe', 'd2data.mpq'] |
NewerOlder