Skip to content

Instantly share code, notes, and snippets.

Avatar
🤔

Lee Byonghun Tolluset

🤔
View GitHub Profile
@azu
azu / TypeScriptの設定の良し悪し.md
Last active Jan 11, 2023
TypeScriptの設定の良し悪し
View TypeScriptの設定の良し悪し.md

tsconfig.json の設定についてのメモ書きです。

Node.jsのバージョンごとの設定

target は 変換後のコードのECMAScriptバージョンを指定する たとえば、Node.js 14はES2020をサポートしている。そのため、Node.js 14向けのコード(サーバなど)ならtarget: "ES2020"を指定することで、余計なTranspileが省かれててコードサイズや実行時間が最適化される。

@ozluy
ozluy / .eslintrc
Last active Apr 10, 2022
Nextjs Eslint
View .eslintrc
//.eslintrc
{
"env": {
"browser": true,
"es6": true,
"commonjs": true
},
"plugins": ["react"],
"extends": [
@sw-yx
sw-yx / 1.md
Last active Jan 13, 2023
Learn In Public - 7 opinions for your tech career
View 1.md

2019 update: this essay has been updated on my personal site, together with a followup on how to get started

2020 update: I'm now writing a book with updated versions of all these essays and 35 other chapters!!!!

1. Learn in public

If there's a golden rule, it's this one, so I put it first. All the other rules are more or less elaborations of this rule #1.

You already know that you will never be done learning. But most people "learn in private", and lurk. They consume content without creating any themselves. Again, that's fine, but we're here to talk about being in the top quintile. What you do here is to have a habit of creating learning exhaust. Write blogs and tutorials and cheatsheets. Speak at meetups and conferences. Ask and answer things on Stackoverflow or Reddit. (Avoid the walled gardens like Slack and Discourse, they're not public). Make Youtube videos

@bsouthga
bsouthga / weakmap_redux.md
Last active Jul 14, 2022
WeakMap + Redux
View weakmap_redux.md

Combining Weakmap + Redux for fun and profit.

Scenario

Lets say we have a large Redux State object which looks like this...

interface State {
  stockMarketData: {
 [stockTicker: string]: {
@harshavardhana
harshavardhana / nginx-minio-static.md
Last active Nov 30, 2022 — forked from koolhead17/gist:4b8dd8d95ec86368634693cf9ad9391c
How to configure static website using Nginx with MinIO ?
View nginx-minio-static.md

How to configure static website using Nginx with MinIO ?

1. Install nginx

2. Install minio

3. Install mc client

4. Create a bucket:

$ mc mb myminio/static
Bucket created successfully ‘myminio/static’.
@serithemage
serithemage / AWSCertifiedDeveloperUnofficialStudyGuide.md
Last active Jan 29, 2023
AWS 공인 개발자 - 어소시에이트 수험 가이드
View AWSCertifiedDeveloperUnofficialStudyGuide.md
@tizmagik
tizmagik / getLastInMap.js
Created Aug 13, 2016
ES6 Last Item in Map()
View getLastInMap.js
// Since ES6 Map()'s' retain their order of insertion, it can sometimes be useful to get the last item or value inserted:
export const getLastItemInMap = map => Array.from(map)[map.size-1]
export const getLastKeyInMap = map => Array.from(map)[map.size-1][0]
export const getLastValueInMap = map => Array.from(map)[map.size-1][1]
// Obviously getLastKey and getLastValue can reuse getLastItem, but for maximum portability I opted for verbosity.
@Nesffer
Nesffer / python-added-urlopen.py
Created Mar 15, 2016
파이썬에서 query, header 추가해서 urlopen 사용하기
View python-added-urlopen.py
import urllib.parse
import urllib.request
url = 'http://example.com'
values = {'name': 'nesffer',
'query': 'python'}
headers = {'Content-Type': 'text/plain'}
data = urllib.parse.urlencode(values).encode('utf-8')
req = urllib.request.Request(url, data, headers)
f = urllib.request.urlopen(req)
@parmentf
parmentf / GitCommitEmoji.md
Last active Jan 29, 2023
Git Commit message Emoji
View GitCommitEmoji.md