Skip to content

Instantly share code, notes, and snippets.

View JavascriptLearner815's full-sized avatar
🏠
Working from home

Dean Alan Summer JavascriptLearner815

🏠
Working from home
View GitHub Profile
@JavascriptLearner815
JavascriptLearner815 / privacy-policy.md
Last active September 11, 2021 12:05
Fight Discord Bot Terms of Service & Privacy Policy
@JavascriptLearner815
JavascriptLearner815 / log.ps1
Last active April 26, 2021 20:00
npm is Gone
# https://stackoverflow.com/questions/67259763/why-is-npm-giving-the-error-cannot-find-module-functions-valid-and-how-do
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
Warning: PowerShell detected that you might be using a screen reader and has disabled PSReadLine for compatibility purposes. If you want to re-enable it, run 'Import-Module PSReadLine'.
PS C:\Users\dspee> mkdir best-housings
@JavascriptLearner815
JavascriptLearner815 / script.js
Last active March 24, 2021 23:56
Custom Programming Language Snippet
// src: https://github.com/JavascriptLearner815/custom-programming-language/blob/main/script.js
btn.addEventListener("click", () => { // line 36
const { value } = code; // line 37
let stopped = false; // line 38
// line 39
[...value.matchAll(consoleRegExp)].forEach(m => { // line 40
if (!stopped) console.log(m[1]); // line 41
}); // line 42
[...value.matchAll(globalVarRegExp)].forEach(m => { // line 43
if (!stopped) globalVariables[m[1]] = m[2]; // line 44
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="E">
<title>E</title>
<link rel="stylesheet" href="main.css">
<noscript>
<p>If you would want to use a site, you would allow script to run, right?</p>