Skip to content

Instantly share code, notes, and snippets.

View gjuoun's full-sized avatar
🌶️

Jun Guo gjuoun

🌶️
View GitHub Profile
@gjuoun
gjuoun / react.tsconfig.json
Created February 17, 2022 01:31
Tsconfig
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
@gjuoun
gjuoun / launch.json
Last active May 24, 2022 19:43
Typescript Node starter
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug Node",
@gjuoun
gjuoun / .gitignore
Last active May 11, 2022 02:14
Typescript React Starter
node_modules
@gjuoun
gjuoun / starship.toml
Last active March 9, 2022 06:00
starship prompt config
# ~/.config/starship.toml
[time]
disabled = true
format = "[$time]($style)"
[aws]
format = ' [$symbol($profile)(\($region\))($duration)]($style)'
[deno]
@gjuoun
gjuoun / fetch.js
Last active April 16, 2022 10:04
fetch nodejs polyfill
const https = require("https");
const fs = require("fs");
const fetch = (url, options) => {
return new Promise((resolve, reject) => {
const urlObj = new URL(url);
const req = https.request(urlObj, options, (res) => {
const response = new Response({
statusCode: res.statusCode,
@gjuoun
gjuoun / launch.json
Created April 18, 2022 03:52
Debug Rust
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Rust",
"type": "lldb",
"request": "launch",