Skip to content

Instantly share code, notes, and snippets.

View bgoonz's full-sized avatar
🎯
learning

Bryan C Guner bgoonz

🎯
learning
View GitHub Profile
@bgoonz
bgoonz / PrimeTripplets.js
Created March 31, 2024 16:13
PrimeTripplets.js
function isPrime(num) {
sRoot = Math.sqrt(num);
for (let i = 2; i <= sRoot; i++) if (num % i === 0) return false;
return num > 1;
}
function findPrimeTriplets() {
const twoDigitPrimes = [];
for (let i = 11; i <= 99; i++) {
if (isPrime(i)) {
@bgoonz
bgoonz / vscode-settings-June2023.jsonc
Created June 27, 2023 21:51
vscode-settings-June2023.jsonc
{
//----------------beginning of editor settings--------------------\\
"editor.comments.ignoreEmptyLines": false,
"editor.trimAutoWhitespace": false,
"editor.suggest.snippetsPreventQuickSuggestions": false,
"editor.definitionLinkOpensInPeek": true,
"editor.fastScrollSensitivity": 9,
"editor.suggest.shareSuggestSelections": true,
"editor.fontSize": 12,
"editor.fontFamily": "Consolas, 'Courier New', monospace",
@bgoonz
bgoonz / reset-node.sh
Created May 18, 2023 15:39
reset node on ubuntu
sudo apt remove --purge nodejs npm
sudo apt clean
sudo apt autoclean
sudo apt install -f
sudo apt autoremove
sudo apt install curl
cd ~
curl -fsSL https://deb.nodesource.com/setup_17.x | sudo -E bash -
sudo apt-get install -y nodejs
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -

Table of Contents

No. Questions
Core React
1 What is React?
2 [What are the major features of React?](#what-are-the
@bgoonz
bgoonz / Snippets.md
Last active February 2, 2023 18:02
Snippets

➤ Weekly-Quick-Snips

replaceAll

the method string.replaceAll(search, replaceWith) replaces all appearances of search string with replaceWith.

@bgoonz
bgoonz / fc-render.markdown
Created January 16, 2023 15:57
FC - render
@bgoonz
bgoonz / blog-readme.md
Created August 27, 2022 15:56
blog-readme.md
@bgoonz
bgoonz / index.html
Created August 27, 2022 13:17
Render Markdown Tool
<h2>Render markdown:</h2>
<div class="load-post-form">
Link to post (busy or steemit): <input type="text" id="post-link-input">
<button id="load-post-button">Load steem post</button>
</div>
<textarea rows="12" style="width: 100%;" id="input">
# Sample post
and some content.
Let's mention @ned
@bgoonz
bgoonz / node-docs.md
Created August 27, 2022 05:52
node-docs.md

How to use the Node.js REPL

description: "REPL stands for Read-Evaluate-Print-Loop, and it's a great way to explore the Node.js features in a quick way"


The node command is the one we use to run our Node.js scripts:

@bgoonz
bgoonz / Web-Dev-Glossary.md
Created August 27, 2022 05:51
Web-Dev-Glossary.md

Term: '404'

  • Glossary
  • HTTP Errors
  • Infrastructure
  • Navigation