Skip to content

Instantly share code, notes, and snippets.

View bglgwyng's full-sized avatar
🏠
Working from home

bglgwyng

🏠
Working from home
View GitHub Profile
@damhiya
damhiya / rotation.md
Last active November 25, 2023 06:18
Rotation

회전

회전에 대해 알아보자. 2차원에선 간단하지. 점 $(x,y)$$\theta$만큼 회전시킨 좌표 $(x',y')$은 이렇게 표현이 돼.

$$ \begin{pmatrix} x' \ y' \end{pmatrix} = \begin{pmatrix} \cos \theta & \sin \theta \

@lukehoban
lukehoban / apigatewaydomain.ts
Last active September 25, 2023 07:41
API Gateway Domain Mapping in Pulumi
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
// The services we want to host on our domain...
const api1 = new aws.apigateway.x.API("api1", {
routes: [
{method: "GET", path: "/", eventHandler: async(ev) => {
return {
statusCode: 200,
body: JSON.stringify({hello: "world"}),