<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by CatCook 貓薯薯 on Medium]]></title>
        <description><![CDATA[Stories by CatCook 貓薯薯 on Medium]]></description>
        <link>https://medium.com/@CatCookCode?source=rss-63d554a7e35e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*s-zQjk5brO1jFKHgWlB_dw.png</url>
            <title>Stories by CatCook 貓薯薯 on Medium</title>
            <link>https://medium.com/@CatCookCode?source=rss-63d554a7e35e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 23:17:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@CatCookCode/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Web開發還是iOS開發：初學者應該選擇哪條路？]]></title>
            <link>https://medium.com/@CatCookCode/web%E9%96%8B%E7%99%BC%E9%82%84%E6%98%AFios%E9%96%8B%E7%99%BC-%E5%88%9D%E5%AD%B8%E8%80%85%E6%87%89%E8%A9%B2%E9%81%B8%E6%93%87%E5%93%AA%E6%A2%9D%E8%B7%AF-5d27c51b03a1?source=rss-63d554a7e35e------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d27c51b03a1</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[CatCook 貓薯薯]]></dc:creator>
            <pubDate>Fri, 28 Apr 2023 08:51:28 GMT</pubDate>
            <atom:updated>2023-04-28T08:51:28.717Z</atom:updated>
            <content:encoded><![CDATA[<p>作為程式世界的初學者，您可能面臨的第一個決定是選擇從事Web開發還是iOS開發。由於不同的語言、平台和生態系統，這一選擇可能讓人望而卻步。在本文中，我們將比較Web開發和iOS開發，以幫助您做出明智的決定。</p><h4>Web開發：</h4><p>1. 開放且標準化的技術：</p><p>Web開發依賴於開放且標準化的技術，如HTML、CSS和JavaScript，使開發人員可以創建運行在多個平台上的應用程序。</p><p>2. 靈活性和多樣化的框架：</p><p>Web開發生態系統規模龐大，提供了眾多框架和庫，如React.js、Angular和Vue.js，可以根據特定項目需求進行定制。</p><p>3. 快速原型設計和易於部署：</p><p>Web應用程序可以快速構建、部署並與用戶共享，使得更容易收集反饋並迭代設計。</p><p>4. 更大的受眾覆蓋範圍：</p><p>Web應用程序可以在任何帶有Web瀏覽器的設備上訪問，使開發人員能夠觸及更廣泛的受眾。</p><h4>iOS開發（使用SwiftUI）：</h4><p>1. 本地和一致的用戶界面：</p><p>SwiftUI專為Apple平台設計，使開發人員可以在所有Apple設備上創建視覺上吸引人且一致的用戶界面。</p><p>2. 增強安全性：</p><p>使用SwiftUI和Apple的生態系統開發可以為相對於Web應用程序提供更好的安全功能。</p><p>3. 實現盈利的潛力：</p><p>Apple App Store為分發和盈利應用程序提供了一個成熟的平台。</p><p>4. 高品質的用戶體驗：</p><p>相對於Web應用程序，原生iOS應用程序在Apple設備上可以提供更好的性能和用戶體驗。</p><h4>結論：</h4><p>選擇Web開發還是iOS開發最終取決於您的目標、興趣和目標受眾。如果您想構建覆蓋面更廣的應用程序並享受開放技術帶來的靈活性，則Web開發可能是正確的選擇。另一方面，如果您熱衷於為Apple設備創建高品質的應用程序並利用Apple生態系統的優勢，則使用SwiftUI進行iOS開發可能是理想的道路。</p><p>作為初學者，您可以先從一條路開始，然後擴展您的技能以包括另一條路。最重要的是開始學習並享受成為熟練開發人員的過程。</p><h4>另外都可參考Github 的報告：</h4><p><a href="https://octoverse.github.com/2022/top-programming-languages">The top programming languages</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d27c51b03a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[在 SwiftUI 中創建按壓式原子筆動畫]]></title>
            <link>https://medium.com/@CatCookCode/%E5%9C%A8-swiftui-%E4%B8%AD%E5%89%B5%E5%BB%BA%E6%8C%89%E5%A3%93%E5%BC%8F%E5%8E%9F%E5%AD%90%E7%AD%86%E5%8B%95%E7%95%AB-d2cc2b588616?source=rss-63d554a7e35e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2cc2b588616</guid>
            <category><![CDATA[animation]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[swiftui]]></category>
            <dc:creator><![CDATA[CatCook 貓薯薯]]></dc:creator>
            <pubDate>Wed, 26 Apr 2023 15:16:15 GMT</pubDate>
            <atom:updated>2023-04-26T15:16:45.015Z</atom:updated>
            <content:encoded><![CDATA[<p>SwiftUI 是一個功能強大的框架，讓開發者更容易地使用聲明式代碼構建用戶界面。在本教程中，我們將探討如何使用 SwiftUI 的內置形狀(built-in shapes)和狀態管理(state management)功能創建一個簡單的可伸縮筆動畫。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*76f-_UTY5s95h_t_i2uGgw.gif" /></figure><h4>開始</h4><p>首先，在 Xcode 中創建一個新的 SwiftUI 項目。我們將在名為 RetractablePen 的新 SwiftUI 視圖(view)中構建我們的可伸縮筆。</p><h4>設計筆</h4><p>要設計筆，我們將使用 SwiftUI 的內置形狀 `Capsule` 和 `RoundedRectangle`。我們將這些形狀放在一個 `ZStack` 中，以使它們層疊在彼此之上。</p><pre>ZStack {<br>    // 筆尖<br>    Capsule()<br>        .frame(width: 25, height: 50)<br>        .foregroundColor(.blue)<br>        .offset(y: isClicked ? -55 : -75)<br><br>    // 筆身<br>    RoundedRectangle(cornerRadius: 5)<br>        .frame(width: 50, height: 150)<br>        .foregroundColor(.gray)<br>}</pre><p>`Capsule` 代表筆尖，`RoundedRectangle` 代表筆身。我們在筆尖上使用了一個 `offset` 修飾符，根據 `isClicked` 狀態更改其位置。</p><p>下面的代碼是三元運算子(ternary conditional expression)， 新手通常會比較陌生，不過之後經常用到， 詳細的解釋可以看下面兩個的教學。</p><pre>isClicked ? -55 : -75</pre><ul><li><a href="https://www.hackingwithswift.com/quick-start/beginners/how-to-use-the-ternary-conditional-operator-for-quick-tests">How to use the ternary conditional operator for quick tests</a></li><li><a href="https://jianjiesun.medium.com/python%E7%AD%86%E8%A8%98-6-%E4%B8%89%E5%85%83%E9%81%8B%E7%AE%97%E5%AD%90-ternary-conditional-operator-72e200575e49">Coding筆記(6): 三元運算子(ternary conditional operator)</a></li></ul><h4>添加切換按鈕</h4><p>接下來，我們將添加一個切換筆點擊狀態並觸發筆尖動畫的按鈕。</p><pre>Button(action: {<br>    withAnimation(.easeInOut(duration: 0.3)) {<br>        isClicked.toggle()<br>    }<br>}) {<br>    Text(&quot;\(isClicked ? &quot;Clicked&quot; : &quot;Click&quot;)&quot;)<br>        .padding()<br>        .background(Color.white)<br>        .cornerRadius(8)<br>        .shadow(radius: 5)<br>}</pre><p>按鈕的操作閉包(closure)使用 `toggle()` 方法切換 `isClicked` 狀態。我們將狀態更改包裝在一個 `withAnimation` 塊中，以創建平滑的動畫效果。</p><h4>完整的 SwiftUI 視圖(View)</h4><p>以下是完整的 `RetractablePen` SwiftUI 視圖：</p><pre>import SwiftUI<br><br>struct RetractablePen: View {<br>    @State private var isClicked = false<br><br>    var body: some View {<br>        VStack {<br>            ZStack {<br>                // Pen tip<br>                Capsule()<br>                    .frame(width: 25, height: 50)<br>                    .foregroundColor(.blue)<br>                    .offset(y: isClicked ? -55 : -75)<br><br>                // Pen body<br>                RoundedRectangle(cornerRadius: 5)<br>                    .frame(width: 50, height: 150)<br>                    .foregroundColor(.gray)<br>            }<br><br>            // Toggle button<br>            Button(action: {<br>                withAnimation(.easeInOut(duration: 0.3)) {<br>                    isClicked.toggle()<br>                }<br>            }) {<br>                Text(&quot;\(isClicked ? &quot;Clicked&quot; : &quot;Click&quot;)&quot;)<br>                    .padding()<br>                    .background(Color.white)<br>                    .cornerRadius(8)<br>                    .shadow(radius: 5)<br>            }<br>            .padding(.top, 30)<br>        }<br>    }<br>}</pre><p>現在，當您運行該項目時，您將看到一個可伸縮筆動畫，該動畫會根據切換按鈕的點擊進行響應。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*76f-_UTY5s95h_t_i2uGgw.gif" /></figure><p>在本教程中，我們展示了如何使用 SwiftUI 創建一個簡單的可伸縮筆動畫。我們探討了 SwiftUI 提供的內置形狀(built-in shapes)、狀態管理(state management)和動畫功能。此示例可作為更複雜的動畫和基於狀態的用戶界面設計的基礎。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2cc2b588616" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Problem Solving#000: 如何exclude .DS_Store file]]></title>
            <link>https://medium.com/@CatCookCode/problem-solving-000-%E5%A6%82%E4%BD%95exclude-ds-store-file-d6be19479b4c?source=rss-63d554a7e35e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6be19479b4c</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[mac]]></category>
            <dc:creator><![CDATA[CatCook 貓薯薯]]></dc:creator>
            <pubDate>Thu, 20 Apr 2023 22:03:17 GMT</pubDate>
            <atom:updated>2023-04-20T22:03:17.643Z</atom:updated>
            <content:encoded><![CDATA[<h3>Problem Solving#000: 如何exclude .DS_Store file</h3><p>因為在Commit 時， 總是要commit 因為.ds_store 總是在變動， 這是一個Mac特有的現象，這個檔案看不見，但是每次當你打開folder 他會記錄一些東西，詳情可以看這個網站</p><p><a href="https://buildthis.com/ds_store-files-and-why-you-should-know-about-them/">.DS_Store Files and Why You Should Know About Them - BuildThis</a></p><p>為什麼上載到GitHub 要exclude 這個檔案，因為這個檔案涉及一些個人的資料。可能會被黑客利用。</p><p>如果還未上載，可以看這個：</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FtnsSiEpPAcI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DtnsSiEpPAcI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FtnsSiEpPAcI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d51bb4e1acb9f553507fa587afef58d8/href">https://medium.com/media/d51bb4e1acb9f553507fa587afef58d8/href</a></iframe><p>如果已經上載了，怎樣在GitHub 刪除可以看這個:</p><p> <a href="https://gist.github.com/lohenyumnam/2b127b9c3d1435dc12a33613c44e6308">https://gist.github.com/lohenyumnam/2b127b9c3d1435dc12a33613c44e6308</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6be19479b4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Problem Solving#001: 如果從Github刪除了Repository，Visual Studio Code怎樣再Publish?]]></title>
            <link>https://medium.com/@CatCookCode/problem-solving-000-%E5%A6%82%E6%9E%9C%E5%BE%9Egithub%E5%88%AA%E9%99%A4%E4%BA%86-visual-studio-code%E6%80%8E%E6%A8%A3%E9%87%8Dpush-ds-store-%E9%BA%BB%E7%85%A9-mac-c429fd90fb8b?source=rss-63d554a7e35e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c429fd90fb8b</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[visual-studio-code]]></category>
            <dc:creator><![CDATA[CatCook 貓薯薯]]></dc:creator>
            <pubDate>Thu, 20 Apr 2023 17:50:35 GMT</pubDate>
            <atom:updated>2023-04-20T22:06:03.677Z</atom:updated>
            <content:encoded><![CDATA[<p>前文提要：</p><p><a href="https://medium.com/@CatCookCode/problem-solving-000-%E5%A6%82%E4%BD%95exclude-ds-store-file-d6be19479b4c">Problem Solving#000: 如何exclude .DS_Store file</a></p><p>因為我是Mac 通常folder 都會有一個叫做.DS_Store . Publish 上GitHub 終於出事了，repositories 有這個File ， 但我不想要，所以我剷除了，然後又出事了， 在 visual studio code 再publish, 出現</p><p>fatal: repository ‘<a href="https://github.com/CatCook/OOOOO.git/">https://github.com/CatCook/OOOOO.git/</a>&#39; not found</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F11565777&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fen-GB%2Fview%2Fkermit-worried-oh-no-anxious-gif-11565777&amp;image=https%3A%2F%2Fmedia.tenor.com%2FPqgTNvSN8wIAAAAC%2Fkermit-worried.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/80317938f8e93f04bc24977d3a63af8c/href">https://medium.com/media/80317938f8e93f04bc24977d3a63af8c/href</a></iframe><p>Google一下發現找不到解決方法，這樣就不如GPT一下， 他列出以下的步驟：</p><p>If you accidentally deleted your GitHub repository and want to publish your local repository again, follow these steps:</p><p>1. Create a new repository on GitHub:</p><p>- Go to <a href="https://github.com/new">https://github.com/new</a> to create a new repository.</p><p>- Give it a name (you can use the same name as the deleted repository) and add a description if desired.</p><p>- Choose the visibility (public or private).</p><p>- You can initialize the new repository with a README, .gitignore, or license file if you like, but it’s not necessary if your local repository already has these files.</p><p>- Click on “Create repository”.</p><p>2. Connect your local repository to the new GitHub repository:</p><p>- Open Visual Studio Code and make sure you’re in the workspace containing your local repository.</p><p>- Open the terminal (if it’s not already open) by going to “View” &gt; “Terminal” or using the keyboard shortcut Ctrl + ~(Windows/Linux) or Cmd + ~ (Mac).</p><p>- Check if you’re in the correct folder by running git status. If you see “On branch master” or “On branch main” and the status of your files, you’re in the right place.</p><p>3. Set the remote URL for your local repository:</p><p>- First, remove the old remote URL if it’s still there by running git remote rm origin.</p><p>- Next, add the new remote URL by running git remote add origin <a href="https://github.com/your-username/your-repository.git.">https://github.com/your-username/your-repository.git.</a> Replace your-username and your-repository with your GitHub username and the name of your new repository.</p><p>4. Push your local repository to GitHub:</p><p>- To push your local branch (usually master or main) to the new GitHub repository, run git push -u origin master or git push -u origin main depending on your main branch name.</p><p>- You may be prompted to enter your GitHub credentials (username and password or personal access token) if you haven’t set up SSH keys.</p><p>5. Verify the publication:</p><p>- Go to your new GitHub repository and refresh the page. You should now see your local repository files and commit history.</p><p>Now you have successfully published your local repository to GitHub again.</p><p>結果發現是OK的</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c429fd90fb8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#003 一邊彈鋼琴一邊練習英文打字？]]></title>
            <link>https://medium.com/@CatCookCode/003-%E4%B8%80%E9%82%8A%E5%BD%88%E9%8B%BC%E7%90%B4%E4%B8%80%E9%82%8A%E7%B7%B4%E7%BF%92%E8%8B%B1%E6%96%87%E6%89%93%E5%AD%97-7fde23b95614?source=rss-63d554a7e35e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7fde23b95614</guid>
            <category><![CDATA[typing]]></category>
            <category><![CDATA[piano]]></category>
            <dc:creator><![CDATA[CatCook 貓薯薯]]></dc:creator>
            <pubDate>Fri, 14 Apr 2023 13:11:51 GMT</pubDate>
            <atom:updated>2023-04-14T13:11:51.676Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*BtXeXo9XypTwbDl_Fq643w.jpeg" /></figure><blockquote>祈禱時候可否吸煙？吸煙的時候可否祈禱？</blockquote><p>我不是在練習打字，我是在練習彈琴。練習彈琴，順手練習打字，打字和彈琴二選一， why not both?</p><p>Program寫到無聊的時候想放鬆一下？不如彈琴？彈天空之城？</p><p><a href="https://virtualpiano.net/?song-post-10392">Virtual Piano</a></p><p>只是寫program? 覺得有點沉悶，不如一邊打program，一邊彈琴？寫 iProgram的時候想更有儀式感，又不想買機械鍵盤，或者想體驗 機械鍵盤的感覺？有些APP可以模擬機器鍵盤的聲音或者 小鳥聲音</p><p><a href="https://apps.apple.com/us/app/loud-typer/id1493508558?mt=12">‎Loud Typer</a></p><p>另外打字是一種冥想？聽着機械鍵盤的聲音此起彼落?</p><p><a href="https://kbs.im/">Mechanical Keyboard Simulator - kbs.im</a></p><h4>參考：</h4><p>邊打字邊看小說？</p><p><a href="https://www.typelit.io/">Practice Typing, Read Lit | TypeLit.io</a></p><h4>概念來自：</h4><p><a href="https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84-swift-ios-app-%E9%96%8B%E7%99%BC%E5%95%8F%E9%A1%8C%E8%A7%A3%E7%AD%94%E9%9B%86/%E4%B8%8D%E7%9C%8B%E9%8D%B5%E7%9B%A4%E6%89%93%E8%8B%B1%E6%96%87-%E5%AD%B8%E7%BF%92%E7%A8%8B%E5%BC%8F%E8%A8%AD%E8%A8%88%E7%9A%84%E7%AC%AC-0-%E6%AD%A5-6dcfd55b016d">不看鍵盤打英文 — 學習程式設計的第 0 步</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7fde23b95614" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#002 ChatGPT 可以彈琴?]]></title>
            <link>https://medium.com/@CatCookCode/001-chatgpt-%E5%8F%AF%E4%BB%A5%E5%BD%88%E7%90%B4-151fc6c674d1?source=rss-63d554a7e35e------2</link>
            <guid isPermaLink="false">https://medium.com/p/151fc6c674d1</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[sonicpi]]></category>
            <dc:creator><![CDATA[CatCook 貓薯薯]]></dc:creator>
            <pubDate>Tue, 11 Apr 2023 14:49:15 GMT</pubDate>
            <atom:updated>2023-04-11T14:51:43.278Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*Lffu48Z7N2aszEeWLCiSbg.jpeg" /></figure><p>如果把音樂理解為code，他是可以的</p><h3><strong>ChatGPT指令：</strong></h3><p>could you convert Prelude and Fugue in C major, BWV 846 to sonic.pi ?</p><p>Sonic.pi 是一個基於ruby的 Live Coding Music Synth</p><p><a href="https://sonic-pi.net/">Sonic Pi</a></p><h3>Code:</h3><pre># Define the tempo and scale<br>use_bpm 1<br>use_synth :piano<br>c_major_scale = scale(:c, :major)<br><br># Define the Prelude notes<br>prelude_notes = [:c4, :e4, :g4, :c5, :b4, :g4, :e4, :c4]<br><br># Define the Fugue subject<br>fugue_subject = [:c4, :d4, :e4, :f4, :g4, :a4, :b4, :c5]<br><br># Define the Prelude and Fugue functions<br>define :play_prelude do<br>  play_pattern_timed prelude_notes, [0.5, 0.5, 0.5, 1, 1, 0.5, 0.5, 2]<br>end<br><br>define :play_fugue_subject do<br>  play_pattern_timed fugue_subject, [0.5] * 8<br>end<br><br>define :play_fugue_response do |note|<br>  play note, release: 0.5<br>  sleep 0.5<br>end<br><br>define :play_fugue do<br>  play_fugue_subject<br>  play_fugue_response :g4<br>  play_fugue_response :a4<br>  play_fugue_response :g4<br>  play_fugue_response :f4<br>  play_fugue_response :e4<br>  play_fugue_response :d4<br>  play_fugue_response :c4<br>  play_fugue_response :d4<br>  play_fugue_response :e4<br>  play_fugue_response :f4<br>  play_fugue_response :g4<br>  play_fugue_response :a4<br>  play_fugue_response :b4<br>  play_fugue_response :c5<br>  play_fugue_response :b4<br>  play_fugue_response :a4<br>  play_fugue_response :g4<br>  play_fugue_response :f4<br>  play_fugue_response :e4<br>  play_fugue_response :d4<br>  play_fugue_response :e4<br>  play_fugue_response :f4<br>  play_fugue_response :g4<br>  play_fugue_response :a4<br>  play_fugue_response :b4<br>  play_fugue_response :c5<br>end<br><br># Play the Prelude and Fugue<br>play_prelude<br>play_fugue</pre><ol><li>複製上面code</li><li>下載 sonic.pi</li><li>貼上</li><li>完成</li></ol><h3><strong>變化：</strong></h3><p><strong>改變音色：</strong></p><pre>use_synth :piano</pre><p>:piano 可以改成 :pluse, :tri , :zawa …. 詳情下面表 synths 部分</p><p><a href="https://www.taeluf.com/blog/sonic-pi/synths-&amp;-samples-cheatsheet/">Sonic-Pi Cheatsheet</a></p><h3><strong>詳細教學/更多玩法：</strong></h3><p><a href="http://sonic-pi.mehackit.org/exercises/en/01-introduction/01-introduction.html">Introduction</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=151fc6c674d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#001 如何更改Xcode 的header(頁首)]]></title>
            <link>https://medium.com/@CatCookCode/01-%E5%A6%82%E4%BD%95%E6%9B%B4%E6%94%B9xcode-%E7%9A%84header-%E9%A0%81%E9%A6%96-87b31cefba38?source=rss-63d554a7e35e------2</link>
            <guid isPermaLink="false">https://medium.com/p/87b31cefba38</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[xcode]]></category>
            <dc:creator><![CDATA[CatCook 貓薯薯]]></dc:creator>
            <pubDate>Wed, 05 Apr 2023 14:45:04 GMT</pubDate>
            <atom:updated>2023-04-11T14:59:34.024Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*ajJ31f4IfQJDNv1YfyPLJg.jpeg" /></figure><p><strong>原因:</strong></p><p>可能是不喜歡暴露，太多個人資訊，programmer的怪癖，一開始，如果預設的話Xcode會顯示你的Apple ID的名稱</p><p><strong>現在最終Code會顯示:</strong></p><pre>//<br>// Helloworld<br>// Dummy.swift<br>//<br>// Created by CatCook on 5/4/2023<br>// All Rights Reserved.</pre><p><strong>步驟：</strong></p><ol><li>打開Finder → Go to Folder</li><li>打~/Library/Developer/Xcode/UserData</li><li>建立IDETemplateMacros.plist</li><li>打開， 複製以下格式並貼上</li><li>保存</li><li>去Xcode新建file 看效果</li></ol><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;<br>&lt;plist version=&quot;1.0&quot;&gt;<br>&lt;dict&gt;<br> &lt;key&gt;FILEHEADER&lt;/key&gt;<br> &lt;string&gt;<br>// ___PROJECTNAME___<br>// ___FILENAME___<br>//<br>// Created by CatCook on ___DATE___<br>// All Rights Reserved.&lt;/string&gt;<br>&lt;/dict&gt;<br>&lt;/plist&gt;</pre><p><strong>可以有什麼變化</strong></p><p>文件中看到的___OOOO ___ 都可以修改，是一個變數，其他是String。 也可以加入自己的網站/其他 聯絡方法所有的變數參考官方文件:</p><p><a href="https://help.apple.com/xcode/mac/9.0/index.html?localePath=en.lproj#/dev7fe737ce0">Text macros reference</a></p><p>最後來個meme, thank indian guy on youtube, 詳細步驟可以看這段影片：</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FRwooaa8ZEn8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DRwooaa8ZEn8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FRwooaa8ZEn8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/31740ec4febe585df251503da57cccd7/href">https://medium.com/media/31740ec4febe585df251503da57cccd7/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*vD-0_7el2NK854OvqX4afg.jpeg" /></figure><p><strong>參考：</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FbHRyP9fTzzc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DbHRyP9fTzzc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FbHRyP9fTzzc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0791d3a45287a2490dd5c4febbb6a682/href">https://medium.com/media/0791d3a45287a2490dd5c4febbb6a682/href</a></iframe><p><a href="https://oleb.net/blog/2017/07/xcode-9-text-macros/">Customizing the file header comment and other text macros in Xcode 9</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87b31cefba38" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#000 自我介紹]]></title>
            <link>https://medium.com/@CatCookCode/00-%E8%87%AA%E6%88%91%E4%BB%8B%E7%B4%B9-12c60f39e7b7?source=rss-63d554a7e35e------2</link>
            <guid isPermaLink="false">https://medium.com/p/12c60f39e7b7</guid>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[CatCook 貓薯薯]]></dc:creator>
            <pubDate>Wed, 05 Apr 2023 14:17:15 GMT</pubDate>
            <atom:updated>2023-04-14T12:21:59.374Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*l_qdHhVxRYQw-BOD_1cNSQ.jpeg" /></figure><p><strong>開始用Medium的原因</strong></p><p>自學swift中 , 在網上搜尋的時候， 經常搜尋到彼得潘和他的學員的教學文章。</p><p><a href="https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84-swift-ios-app-%E9%96%8B%E7%99%BC%E6%95%99%E5%AE%A4">彼得潘的 Swift iOS / Flutter App 開發教室</a></p><p>看到每日都有人更新自己的學習過程，自己又想更新了。</p><p><strong>愛好</strong></p><p>吸貓，寫Program寫到悶的時候，會去找AI 造貓。貓派，一起做貓，頭像用這個網站做的。</p><p><a href="https://uchinoko-maker.jp/">【公式】うちのこメーカー | 猫イラストを無料で簡単作成！</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12c60f39e7b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>