This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Leetcode daily challenge - 14.06.22 | |
| // https://leetcode.com/problems/delete-operation-for-two-strings | |
| // Top Down DP approach - O(n*m) space and O(n^2) time complexity | |
| class Solution { | |
| public: | |
| int minDistance(string word1, string word2) { | |
| int n = word1.size(),m = word2.size(); | |
| int dp[n+1][m+1]; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "os" | |
| "os/signal" | |
| "sync" | |
| "syscall" | |
| "time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mr_demo: = gitlab.MergeRequest { | |
| BasicMergeRequest: gitlab.BasicMergeRequest { | |
| ID: 370891163, | |
| IID: 14, | |
| TargetBranch: "main", | |
| SourceBranch: "service-marketplace-product-2025-03-21T04-52-53Z", | |
| ProjectID: 67898401, | |
| Title: "Update values for marketplace/product - TkAo", | |
| State: "opened", | |
| Imported: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "encoding/json" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "os" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > https://stackoverflow.com/questions/50973048/forking-git-repository-from-github-to-gitlab | |
| 1. Create an empty repository in Gitlab | |
| 2. Set the original Github repository as upstream: | |
| ```bash | |
| git remote add upstream https://github.com/user/repo | |
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bytes" | |
| "context" | |
| "encoding/json" | |
| "errors" | |
| "fmt" | |
| "log" | |
| "net" |
You can deploy a static web app with a fully private S3 bucket by putting CloudFront in front of it and granting CloudFront exclusive access. The “legacy” style CloudFront distribution uses an Origin Access Identity (OAI) instead of the newer Origin Access Control (OAC).
- An AWS account with permissions for S3, CloudFront, and IAM.
- A built static website folder on your machine (for example containing
index.html, CSS, JS, and assets). - Optional but recommended: a registered domain (for example via Route 53) and an ACM certificate in
us-east-1if you want HTTPS on a custom domain.