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
| # Reusable Makefile snippet for Codex-assisted commit split + push | |
| GIT_PUSH_SCRIPT ?= scripts/codex-git-push.sh | |
| TARGET_REMOTE ?= origin | |
| TARGET_BRANCH ?= main | |
| .PHONY: install-codex-git-push git-push git-push-any-branch | |
| install-codex-git-push: | |
| @mkdir -p scripts |
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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| target_remote="${TARGET_REMOTE:-origin}" | |
| target_branch="${TARGET_BRANCH:-main}" | |
| codex_bin="${CODEX_BIN:-codex}" | |
| require_branch_match="${REQUIRE_BRANCH_MATCH:-1}" | |
| usage() { | |
| cat <<'USAGE' |
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
| func Req(method string, url string, body interface{}, headers map[string]string, model interface{}) (int, error) { | |
| var r *http.Request | |
| fmt.Printf("Start request. %s", url) | |
| if body == nil { | |
| r, _ = http.NewRequest(method, url, nil) | |
| } else { | |
| bodyBytes, _ := json.Marshal(body) | |
| r, _ = http.NewRequest(method, url, bytes.NewBuffer(bodyBytes)) | |
| r.Header.Add("Content-Type", "application/json") |
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 db | |
| import "fmt" | |
| func MysqlDSN(user, password, host, port string) string { | |
| return fmt.Sprintf("%s:%s@tcp(%s:%s)/?charset=utf8&parseTime=True&loc=Local", | |
| user, | |
| password, | |
| host, | |
| port, |
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" | |
| ) | |
| func SimpleStringSprintf() { | |
| _ = fmt.Sprintf("Hello %v", "world") | |
| } |
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://blog.jjgo.kr/100 | |
| Sub GeneratorParamDoc() | |
| Dim tableGr As Range | |
| Dim writeCur As Range | |
| Dim firstCur As Range | |
| Dim rowCnt As Integer | |
| Set writeCur = ActiveCell | |
| Set firstCur = writeCur.Offset(0, -1) | |
| rowCnt = 0 |
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://blog.jjgo.kr/71 | |
| #include<stdio.h> | |
| #define 한줄의총커서 72 | |
| #define 엑스문자표시총행 16 | |
| #define 구구단한계산의글씨량 5 | |
| #define 구구단앞숫자 9 | |
| #define 구구단뒷숫자 9 |
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
| Public Sub RequestTest() | |
| Dim urlApi As String | |
| Dim wb As Workbook | |
| Dim getImageURL As String | |
| Dim getImageURL2 As String | |
| Dim oneCell As Range | |
| Dim pic As PictureFormat | |
| For Each oneCell In Selection | |
| Dim se As Object |
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
| type behaviorFunc func() | |
| type CrudController struct { | |
| // TODO: Code it here. | |
| } | |
| func (ct *CrudController) Prepare() { | |
| ct.BaseController.Prepare() | |
| } |
NewerOlder