[{"content":"C#은 소수점이 길어지면 이를 모두 보여주지 않음 계산기처럼 E를 사용하거나, 소수점 뒤쪽이 모두 표기되지 않는 식. 이때 포맷팅을 사용해 강제로 모두 보이도록 할 수 있음.\n1 2 double ans=Math.Pow(2,-100); Console.Write(ans.ToString(\u0026#34;F400\u0026#34;).TrimEnd(\u0026#39;0\u0026#39;)); F 뒤의 숫자만큼 0을 채워서라도 강제로 보여주는 형식이므로 TrimEnd를 통해 뒤의 0을 지워줌.\n","date":"2026-02-23T10:46:00+09:00","permalink":"/samidare20/p/c%23-%ED%81%B0-%EC%86%8C%EC%88%98-%EC%B2%98%EB%A6%AC/","title":"C# 큰 소수 처리"},{"content":"bash shell 꾸미기 윈도우 cmd 너무 맘에 안들어서 git bash 를 기본으로 쓰고 있음\n일단 윈 11기준이라 그 아래 버전도 되는진 모름\ncmd 프로필을 건드릴건데 그게 아마 11에 생겼던 것 같아\ngit bash 터미널 등록 기본적으로 터미널 프로필에 cmd, powershell 이런 기본제공 터미널들만 들어가있음\n새 guid 생성 1 [guid]::NewGuid() 이거 하면 뭐 뜨는데 그걸 가지고 가서\n프로필에 등록 누르면 나오는 화면 맨 아래 왼쪽에 open JSON file 누르기\n그 안에 profiles-\u0026gt;list 항목안에\n1 2 3 4 5 6 7 8 9 10 { \u0026#34;commandline\u0026#34;: \u0026#34;깃 설치폴더\\\\bin\\\\bash.exe -i -l\u0026#34;, \u0026#34;guid\u0026#34;: \u0026#34;아까생성한 그거 복붙\u0026#34;, \u0026#34;hidden\u0026#34;: false, // \u0026#34;icon\u0026#34;: \u0026#34;깃 설치폴더\\\\mingw64\\\\share\\\\git\\\\git-for-windows.ico\u0026#34;, // 필수는 아님 그냥 프로필에 git bash 아이콘 생김 \u0026#34;name\u0026#34;: \u0026#34;Git Bash\u0026#34;, //\u0026#34;startingDirectory\u0026#34;: \u0026#34;\u0026#34; //이거하면 bash 시작 디렉토리 지정할 수 있음 } 대충 눈치껏 집어넣어\n그리고 아까 그 설정창 보면 기본 프로필 지정할 수 있는데 난 이것도 그냥 git bash 로 해버렸음\n화면 예쁘게 하기 zsh 설치 https://packages.msys2.org/packages/zsh?variant=x86_64\n이거 압축 두번 푼 다음 git 설치폴더에 그냥 때려박으면 됨\n그리고 터미널 켜서 zsh 입력하면 뭐 무진장 뜸\n그냥 0 누르면 .zshrc 파일 생성되었던 거 같은데 하나하나 읽어봐도 상관 없음\nzsh 설정 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 $ sh -c \u0026#34;$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)\u0026#34; $ vi ~/.zshrc ZSH_THEME=\u0026#34;원하는 테마 이름\u0026#34; cd ~/.oh-my-zsh/plugins git clone https://github.com/zsh-users/zsh-syntax-highlighting.git echo \u0026#34;source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh\u0026#34; \u0026gt;\u0026gt; ${ZDOTDIR:-$HOME}/.zshrc git clone https://github.com/zsh-users/zsh-autosuggestions.git echo \u0026#34;source ${(q-)PWD}/zsh-autosuggestions/zsh-autosuggestions.zsh\u0026#34; \u0026gt;\u0026gt; ${ZDOTDIR:-$HOME}/.zshrc plugins=( git zsh-autosuggestions zsh-syntax-highlighting ) # 여러개 고를 수 있는데 콜론 없이 나열함 source $ZSH/oh-my-zsh.sh 참고 테마 쇼핑 https://github.com/ohmyzsh/ohmyzsh/wiki/Themes\n위에 있는 친구들 이름들은 기본적으로 추가적인 설치 없이 zshrc 설정만 건드리면 됨\n테마 이것저것 써보고 있는데 powerlevel10k 이거 제일 예쁜듯\n1 2 git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k echo \u0026#39;source ~/powerlevel10k/powerlevel10k.zsh-theme\u0026#39; \u0026gt;\u0026gt;~/.zshrc 그리고 .zshrc 안의 theme은 공란으로 남겨두기 이것저것 나오는데 직관적이니까 구경하면서 고르기\n플러그인 쇼핑 https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins\n이것도 그럼. 그 외에는 그냥 깃허브 보고 찾기\n너무 많으면 쉘 부팅 속도가 느려진대\nzshrc에 대해 alias 명령어를 bashrc에 등록해 쓰고 있었는데 이게 zsh 사용 이후로 적용이 안되기 시작함\n알고보니 zsh를 쓰면 기본적으로 zshrc를 읽어오게 됨\n그러니까 그냥 zshrc 파일에다가 alias 나열하면 다 적용됨\nalias 뿐 아니라 그냥 bashrc에 적어둔거 싹 다 옮겨도 ㄱㅊ\n","date":"2026-02-12T10:41:00+09:00","permalink":"/samidare20/p/add-wisely-as-too-many-plugins-slow-down-shell-startup./","title":"Add wisely, as too many plugins slow down shell startup."},{"content":"alias에 등록해두면 좋을만한 거 정리 1 2 3 4 5 6 7 alias gs=\u0026#34;clear ; git status\u0026#34; alias c=\u0026#34;clear\u0026#34; alias ga=\u0026#34;clear ; git add .\u0026#34; alias gc=\u0026#39;f(){clear ; git commit -m \u0026#34;$@\u0026#34; ; unset -f f;}; f\u0026#39; alias gp=\u0026#34;clear ; git push\u0026#34; alias gf=\u0026#34;clear; git fetch\u0026#34; alias gr=\u0026#39;f(){clear ; git rebase -i HEAD~\u0026#34;$@\u0026#34; ; unset -f f;};f\u0026#39; ","date":"2026-02-12T10:41:00+09:00","permalink":"/samidare20/p/alias/","title":"alias "},{"content":" slug: / ","date":"2026-02-12T10:41:00+09:00","permalink":"/samidare20/p/intro/","title":"intro"},{"content":"현재 작업 현황을 임시적으로 저장\ncommit 되지 않은 모든 파일들이 저장됨\ngit stash stash 저장하기 1 2 $ git stash Saved working directory and index state WIP on main: abc1234 Latest commit message 1 2 $ git stash save \u0026#34;123\u0026#34; Saved working directory and index state On main: 123 stash 목록 확인 1 2 3 $ git stash list stash@{0}: WIP on main: abc1234 Latest commit message stash@{1}: WIP on main: def5678 Previous commit message stash 적용하기 1 $ git stash pop 1 $ git stash apply stash@{1} stash 적용 없이 삭제하기 1 $ git stash drop 1 $ git stash drop stash@{1} 1 $ git stash clear ","date":"2026-02-12T10:41:00+09:00","permalink":"/samidare20/p/stash/","title":"stash"},{"content":"godot 공부하면서 생기는 끔찍한 일들에 대해 기록함\nTileMap 에 관하여 이놈 이거 아무래도 4버전 업데이트가 진행되며 사용이 권장되지 않는 모양\n공부하던 영상은 사용해도 별 문제 없었는데 4.4 버전 기준으로 공부하던 나는 노드 오른쪽에 오류가 붙은 것을 보게 되어 버렸음\n이젠 TileMapLayer이라는 친구를 대신 사용하라느 뜻으로 보임 그래도 자동 변환 기능은 만들어줬네\n추후에는 아예 사라져 버릴지도 몰라\n","date":"2026-02-12T10:41:00+09:00","permalink":"/samidare20/p/troubles/","title":"Troubles"},{"content":"시작점에서 다른 지점까지들의 비용을 구함\n특징 시작지점에서부터 다른 모든 노드로의 비용을 구함. 단, 음수값을 가진 간선이 있으면 사용할 수 없음.\n속도가 상당히 빠른 편.\n시간 복잡도 O(VLogE)\n구현 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 void solv(int index) //index는 시작점 { vector\u0026lt;int\u0026gt; visit(1010,987654321); visit[index]=0; //다른 노드들까지의 비용이 저장됨 priority_queue\u0026lt;pair\u0026lt;int,int\u0026gt;,vector\u0026lt;pair\u0026lt;int,int\u0026gt;\u0026gt;,greater\u0026lt;pair\u0026lt;int,int\u0026gt;\u0026gt;\u0026gt; q; q.push(make_pair(0,index)); while(!q.empty()) { auto a=q.top(); q.pop(); if(a.first\u0026gt;visit[a.second]) continue; for(auto i:v[a.second]) { if(visit[i.second]\u0026gt;visit[a.second]+i.first) { visit[i.second]=visit[a.second]+i.first; q.push(make_pair(visit[i.second],i.second)); } } } } ","date":"2026-02-12T10:41:00+09:00","permalink":"/samidare20/p/%EB%8B%A4%EC%9D%B5%EC%8A%A4%ED%8A%B8%EB%9D%BC-dijkstra/","title":"다익스트라 (dijkstra)"},{"content":"모든 점에서 다른 모든 점까지의 비용을 모두 구함\n특징 모든 노드를 기준으로 다른 모든 노드들까지의 비용을 구함.\n모든 경우의 수를 다 구하므로 시간복잡도가 높음.\n음수의 간선도 처리 가능.\n시간 복잡도 O(V3)\n구현 거리 배열 초기화 1 2 3 4 5 6 7 for(int i = 1; i\u0026lt;=n; i++){ for(int j =1; j\u0026lt;=n; j++){ if (i == j) dist[i][j] = 0; else if (board[i][j]) dist[i][j] = board[i][j]; else dist[i][j] = INF; } } 직접 이어져 있는 노드는 해당 비용으로, 자기 자신 노드는 0으로, 이외는 최대값으로 채운다.\n연산이 끝났을 때에도 최대값이라면 이어지는 경로가 없는 것.\n연산 1 2 3 4 5 6 7 for(int k = 1; k\u0026lt;= n; k++){ for(int i = 1; i \u0026lt;= n; i++){ for(int j = 1; j\u0026lt;=n; j++){ dist[i][j] = min(dist[i][j], dist[i][k]+dist[k][j]); } } } ","date":"2026-02-12T10:41:00+09:00","permalink":"/samidare20/p/%ED%94%8C%EB%A1%9C%EC%9D%B4%EB%93%9C-%EC%9B%8C%EC%85%9C-floyd-warshall/","title":"플로이드-워셜 (Floyd-Warshall)"}]