Skip to content

Instantly share code, notes, and snippets.

View gjuoun's full-sized avatar
Superstar

Jun Guo gjuoun

Superstar
View GitHub Profile
@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",
@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 / 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 / .gitignore
Last active May 11, 2022 02:14
Typescript React Starter
node_modules
@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 / react.tsconfig.json
Created February 17, 2022 01:31
Tsconfig
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
@gjuoun
gjuoun / react.babelrc
Created February 17, 2022 01:29
Babel Config
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
]
}
@gjuoun
gjuoun / webpack.config.jsx.js
Last active February 17, 2022 01:34
Webpack Config
const path = require('path')
module.exports = {
entry: './src/index.jsx',
module: {
rules: [
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: ['babel-loader']
@gjuoun
gjuoun / node-starter.yml
Last active November 12, 2021 02:09
github-actions
name: GitHub Actions Demo
on: [push]
jobs:
Push-to-build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- run: git config --global user.email "action@github.com"
- run: git config --global user.name "GitHub Action"
@gjuoun
gjuoun / breakPoint.recoil.ts
Last active November 12, 2021 02:07
breakPoint-with-recoil
import { nanoid } from "nanoid";
import { atom } from "recoil";
import UAParser from 'ua-parser-js'
interface BreakPoint{
isMobile: boolean
isLaptop: boolean
isTablet: boolean
}