Skip to content

Instantly share code, notes, and snippets.

View rajephon's full-sized avatar
๐Ÿ“ก
๐Ÿ›ฐ

Chanwoo Noh rajephon

๐Ÿ“ก
๐Ÿ›ฐ
View GitHub Profile
@onderaltintas
onderaltintas / degrees2meters.js
Last active April 12, 2022 01:38 — forked from springmeyer/degress2meters.js
javascript coordinate conversions between 900913(3857) - 4326(lat lon)
var degrees2meters = function(lon,lat) {
var x = lon * 20037508.34 / 180;
var y = Math.log(Math.tan((90 + lat) * Math.PI / 360)) / (Math.PI / 180);
y = y * 20037508.34 / 180;
return [x, y]
}
//test
lon= -77.035974
lat = 38.898717
@branneman
branneman / better-nodejs-require-paths.md
Last active June 24, 2025 22:40
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

const Article = require('../../../../app/models/article');

Those suck for maintenance and they're ugly.

Possible solutions

@lattner
lattner / TaskConcurrencyManifesto.md
Last active June 17, 2025 04:35
Swift Concurrency Manifesto
@serithemage
serithemage / aws-study-resource.md
Last active June 10, 2025 01:45
AWS ํ•™์Šต ์ž๋ฃŒ์ง‘

AWS ํ•™์Šต ๋งํฌ์ง‘ ์‹œ๋ฆฌ์ฆˆ

  • AWS ํŠธ๋ ˆ์ด๋‹ ๋ฐ ์ž๊ฒฉ์ฆ ์†Œ๊ฐœ http://bit.ly/aws-tnc-intro
  • AWS ํ•™์Šต ์ž๋ฃŒ์ง‘ http://bit.ly/aws-study-resource
  • AWS ๊ณต์ธ ์†”๋ฃจ์…˜์Šค ์•„ํ‚คํ…ํŠธ - ์–ด์†Œ์‹œ์—์ดํŠธ ์ˆ˜ํ—˜ ๊ฐ€์ด๋“œ http://bit.ly/sacertguide
  • AWS ๊ณต์ธ ๊ฐœ๋ฐœ์ž - ์–ด์†Œ์‹œ์—์ดํŠธ ์ˆ˜ํ—˜ ๊ฐ€์ด๋“œ http://bit.ly/devcertguide
  • AWS ๋ณด์•ˆ ๊ด€๋ จ ์ปจํ…์ธ  ๋ชจ์Œ์ง‘ http://bit.ly/secontents
  • AWS ๊ธฐ๋ฐ˜ ๋น…๋ฐ์ดํ„ฐ ํ•™์Šต์ž๋ฃŒ์ง‘ http://bit.ly/bdonaws
  • AWS ๋”ฅ๋Ÿฌ๋‹ ํ•™์Šต ์ž๋ฃŒ ๋ชจ์Œ์ง‘ http://bit.ly/dlonaws
  • 2019๋…„ re:Invent ์—์„œ ๊ณต๊ฐœ๋œ AI/ML๊ด€๋ จ ์„œ๋น„์Šค ์†Œ๊ฐœ http://bit.ly/2019-ml-recap
@ninanung
ninanung / login-with-github.md
Last active September 20, 2023 16:16
Github๋กœ ๋กœ๊ทธ์ธํ•˜๊ธฐ!

Github๋กœ ๋กœ๊ทธ์ธํ•˜๊ธฐ feat.Vue and Node.js

1. Github๋กœ ๋กœ๊ทธ์ธํ•˜๊ธฐ?

์š”์ฆ˜๋“ค์–ด "~๋กœ ๋กœ๊ทธ์ธํ•˜๊ธฐ" ๊ฐ€ ๋งŽ์•„์ง€๊ณ  ์žˆ๋‹ค. ํŽ˜์ด์Šค๋ถ์ด๋‚˜ ๊ตฌ๊ธ€์ด ๋Œ€ํ‘œ์ ์ด๊ณ , ํ•œ๊ตญ์—์„œ๋Š” ๋„ค์ด๋ฒ„๋„ ๋งŽ์ด ์‚ฌ์šฉํ•˜๋ฉฐ ๊ฐœ๋ฐœ์ž ๊ด€๋ จ ์›น์—์„œ๋Š” ๊นƒํ—ˆ๋ธŒ๋„ ๊ปด์žˆ๋Š” ๊ฒฝ์šฐ๊ฐ€ ๋งŽ๋‹ค. ์ด๋Ÿฐ ์‹์˜ ๋‹ค๋ฅธ ์„œ๋น„์Šค๋ฅผ ํ†ตํ•ด ์ธ์ฆํ•˜๋Š” ๋ฐฉ์‹์„, OAuth ์ธ์ฆ ๋ฐฉ์‹์ด๋ผ๊ณ  ํ•˜๋Š” ๋ชจ์–‘์ด๋‹ค. ๋‚ด๊ฐ€ ํšŒ์‚ฌ ์—…๋ฌด๋ฅผ ์œ„ํ•ด ์‚ฌ์šฉํ•˜๋Š” ๋ช‡๋ช‡ ์†Œํ”„ํŠธ์›จ์–ด๋„ ์ด๋Ÿฌํ•œ ์ธ์ฆ์„ ์ง€์›ํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ๋งŽ๋‹ค. ์ด ๊ธ€์—์„œ๋Š” ๊ทธ๋Ÿฌํ•œ ์ธ์ฆ์„ ๊ตฌํ˜„ํ•˜์ง€๋Š”๊ฒŒ ์•„๋‹ˆ๋ผ ๊ทธ๋Ÿฌํ•œ ์ธ์ฆ์„ ์‚ฌ์šฉํ•ด ๋ณด์ž๋Š” ๊ฒƒ์— ๋ชฉ์ ์„ ๋‘”๋‹ค. ์–ด๋–ค ๋ฐฉ์‹์œผ๋กœ ์ธ์ฆํ•˜๋Š”์ง€๋ฅผ ์ง์ ‘ ์‚ฌ์šฉํ•ด๋ณด๊ณ  OAuth๋ฐฉ์‹ ์ธ์ฆ์˜ ์ ˆ์ฐจ๋ฅผ ์•Œ์•„๋ณด๋Š” ๊ธฐํšŒ๋„ ๋ ๊ฒƒ์ด๋‹ค.

2. ๋ชฉํ‘œ

๋ชฉํ‘œ
์œ„์™€ ๊ฐ™์ด ๋ฒ„ํŠผ์„ ๋ˆ„๋ฅด๋ฉด Github์—์„œ ์ธ์ฆ์„ ์‹คํ–‰ํ•˜๊ณ  ๊ด€๋ จ ๋ฐ์ดํ„ฐ๋ฅผ ๋ฐ›์•„์˜ค๋Š” ๋™์ž‘์„ ๊ตฌํ˜„ํ•ด ๋ณผ ๊ฒƒ์ด๋‹ค.

@nicosingh
nicosingh / .gitignore
Last active July 2, 2025 06:02
ECS using Terraform sample
*.tfbackup
.terraform/
*.tfstate
.terraform.tfstate.lock.info
@mayneyao
mayneyao / notion2blog.js
Last active June 19, 2025 19:02
Notion.so > Personal Blog | custom domain + disqus comment
const MY_DOMAIN = "agodrich.com"
const START_PAGE = "https://www.notion.so/gatsby-starter-notion-2c5e3d685aa341088d4cd8daca52fcc2"
const DISQUS_SHORTNAME = "agodrich"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
"Access-Control-Allow-Origin": "*",
@slawekzachcial
slawekzachcial / aws-sigv4-ssm-get-parameter.sh
Last active July 2, 2025 05:44
Using CURL to call AWS ReST API, signing request with v4 signature
#!/bin/bash
# Source: https://docs.aws.amazon.com/general/latest/gr/sigv4-signed-request-examples.html
[[ -n "${AWS_ACCESS_KEY_ID}" ]] || { echo "AWS_ACCESS_KEY_ID required" >&2; exit 1; }
[[ -n "${AWS_SECRET_ACCESS_KEY}" ]] || { echo "AWS_SECRET_ACCESS_KEY required" >&2; exit 1; }
readonly parameterName="SlawekTestParam"
readonly method="POST"
@danielwetan
danielwetan / nodejs-cicd-github-actions.md
Last active July 2, 2025 09:58
Deploy Node.js to VPS using Github Actions

Deploy Node.js to VPS using Github Actions

Steps to deploy Node.js to VPS using PM2 and Github Actions

1. Clone repo to VPS folder