Skip to content

Instantly share code, notes, and snippets.

View jsjoeio's full-sized avatar

Joe Previte jsjoeio

View GitHub Profile
@jsjoeio
jsjoeio / index.txt
Created December 20, 2023 23:50
Haskell teacher prompt
you are a world class Haskell engineer.
you are going to interview me on the following questions. I want you to only reply as the interviewer. Do not write all the conversation at once. I want you to only do the interview with me. Do not write explanations. ask me the questions one bye one like an interviewer does and wait for my answers.
I want you to ask me the following questions related to Haskell/Postgres.
1. What about using count?
2. What are the tradeoffs between using count vs selectList and then counting
3. fromJust is a bit dangerous. Why is that?
@jsjoeio
jsjoeio / prompt.txt
Created August 21, 2023 03:02
AI-Assisted Leetcode Prompt
There are two steps:
1. asking ChatGPT to solve the problem.
2. asking ChatGPT to act like the interviewer and quiz you on the solution.
---
"solve the following question with typescript:
<paste entire description of leetcode problem here>
@jsjoeio
jsjoeio / hello.txt
Created July 9, 2023 22:36
Joe Previte - email that landed first dev job
On Jun 18, 2017, at 2:10 PM, Joe Previte <redacted> wrote:
Hi <redacted>,
Thanks for the quick response via Slack. As for pertinent information, here's a brief summary:
-I am proficient in Adobe Photoshop, Illustrator, and Premiere (3 years of design and 4 years of video-editing)
-I have been learning to program since December and I plan to start a tech career in design/development in August. Here's my portfolio, which I am currently building up. I will have finished the freeCodeCamp Front-End certificate before August and have multiple projects to demonstrate my skills.
-I have a degree in Global and Intercultural Understanding from U of A(I speak Spanish and Italian fluently, also studied Portuguese and some Mandarin)
-I'm interested in foreign languages, education, and the outdoors.
@jsjoeio
jsjoeio / prompt.md
Last active June 30, 2023 20:10
ChatGPT Prompt to Level Up Your Software Engineering Vocabulary in English

give me 5 examples of usage of the word ‘’ in a sentence in the context of software engineering

@jsjoeio
jsjoeio / comparison.md
Last active May 23, 2023 14:54
axios vs. isomorphic-fetch

Which library should you use for making HTTP requests from a React/Node project?

In this doc, we'll explore two popular libraries: axios and isomorphic-fetch.

axios

Quick facts:

  • 37,439 stars on GitHub
  • 130 contributors
  • most recent commit: March 8th, 2018
  • created in Aug. 2014
@jsjoeio
jsjoeio / run-multiple-tests.sh
Last active February 27, 2023 12:06
How to Run a Jest test multiple times
#!/usr/bin/env bash
i=1
successes=0
failures=0
totalTests=10
SUCCESS_CHECKMARK=$(printf '\342\234\224\n' | iconv -f UTF-8)
CROSS_MARK=$(printf '\342\235\214\n' | iconv -f UTF-8)
OUTPUT_FILE="jestOutput.txt"
until [ $i -gt $totalTests ]; do
@jsjoeio
jsjoeio / keybindings.json
Created February 17, 2022 22:29
Latest keybindings
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "cmd+p",
"command": "workbench.action.showAllSymbols"
},
{
"key": "ctrl+t",
"command": "-workbench.action.showAllSymbols"
},
@jsjoeio
jsjoeio / reproduce.ts
Last active January 25, 2022 22:23
code-server reproduce script
// A script to reproduce issues in code-server quickly
async function main(args: string[]) {
const issueNum = args[0] || "1234"
console.log(`🔍 Reproducing code-server issue #${issueNum}`)
console.log(`🔗 https://github.com/coder/code-server/issues/${issueNum}`)
console.log(`📁 Creating temporary extensions directory...`)
// create temp directory
@jsjoeio
jsjoeio / migrate-posts.ts
Last active December 26, 2021 05:27
Migrate Content in Gatsby Site to Astro Site
/*
README
I wrote this script to migrate all my blog posts from my Gatsby site to my Astro site.
Sharing in case it helps anyone with their own migration.
Context: my Gatsby site had the blog posts under `/content` and in there, each post had
a directory and inside that it had an `index.md` and images.
@jsjoeio
jsjoeio / notes.md
Last active November 3, 2021 14:31
Julian's Writing Workshop - 11/2/2021 - Notes

Raw Notes

These are my unstructured notes from the workshop. Read with caution (they're biased to my own interpretation).

Notes

1,000,000 Julian.com visitors

Part 1: What's your objective for your article?

Part 2: pair it with an objective