Skip to content

Commit

Permalink
Update at 2024-09-24_06-00
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoniplan committed Sep 23, 2024
1 parent a257361 commit b14a95b
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 23 deletions.
87 changes: 78 additions & 9 deletions assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,45 @@
<body>
<article class="markdown-body">
<ul>
<li><h4>Use Cloudflare D1 as a backend</h4>
<li><h4>Set up a profile</h4>
<ul>
<li>Typing SVG<pre><code>![Typing SVG](https://readme-typing-svg.demolab.com/?lines=Hello%20there%2C%20I&#39;m%20yaoniplan%20%F0%9F%91%8B)
</code></pre>
<ul>
<li><code>&amp;font=Fira%20Code</code></li>
<li>Remember to encode the string</li>
</ul>
</li>
<li>Skill icons<pre><code>![skills](https://skillicons.dev/icons?i=arch,bash)
</code></pre>
<ul>
<li><code>bash</code> # Replace it with other icon id</li>
<li><code>&amp;perline=14</code></li>
</ul>
</li>
<li>Repo cards<pre><code>[![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=yaoniplan&amp;repo=note)](https://github.com/yaoniplan/note)
</code></pre>
<ul>
<li><code>&amp;theme=dark</code></li>
<li><code>&amp;show_owner=true</code></li>
</ul>
</li>
</ul>
</li>
<li><em><strong>Notes</strong></em><ul>
<li>Becuase to highlight my skills and experience.</li>
</ul>
</li>
<li><em><strong>References</strong></em><ul>
<li><a href="https://github.com/anuraghazra/github-readme-stats#themes">https://github.com/anuraghazra/github-readme-stats#themes</a></li>
<li><a href="https://github.com/tandpfun/skill-icons#example">https://github.com/tandpfun/skill-icons#example</a></li>
<li><a href="https://github.com/DenverCoder1/readme-typing-svg#-quick-setup">https://github.com/DenverCoder1/readme-typing-svg#-quick-setup</a></li>
</ul>
</li>
</ul>
<hr>
<ul>
<li><h4>Use &quot;wrangler&quot;</h4>
<ul>
<li><code>npm create cloudflare@latest -- products</code> # Create a project</li>
<li><code>npx wrangler d1 create products</code> # Create a database</li>
Expand Down Expand Up @@ -242,7 +280,10 @@
<li>Delete (Delete product by barcode)<pre><code>curl --request DELETE http://localhost:8787/delete_product?barcode=6934567890123
</code></pre>
</li>
<li>Because to open the database to the Internet for easy query.</li>
<li>Because to open the database to the Internet for easy query.<ul>
<li>Use Cloudflare D1 as a backend</li>
</ul>
</li>
</ul>
</li>
<li><em><strong>References</strong></em><ul>
Expand All @@ -253,6 +294,22 @@
</ul>
<hr>
<ul>
<li><h4>Integrate Cloudflare Workers KV for low-latency access</h4>
<ul>
<li><code>npx wrangler kv namespace create products</code> # Create a KV namespace</li>
<li><code>vi ~/.config/store/products/wrangler.toml</code><pre><code>[[kv_namespaces]]
binding = &quot;products&quot;
id = &quot;&lt;your-kv-namespace-id&gt;&quot;
</code></pre>
</li>
<li><code>vi ~/.config/store/products/src/index.ts</code><pre><code>// Adjust as needed
</code></pre>
</li>
<li><code>npx wrangler deploy</code> # Deploy your Worker on the Internet</li>
</ul>
</li>
<li><em><strong>Notes</strong></em></li>
<li><em><strong>References</strong></em></li>
<li><h4>Change wallpaper color in iPhone Shortcuts</h4>
<ul>
<li>Get <code>All</code> wallpapers</li>
Expand Down Expand Up @@ -3710,20 +3767,21 @@
<ul>
<li><h4>Use &quot;jq&quot;</h4>
<ul>
<li><code>echo &quot;$response&quot; | jq --raw-output &#39;.content&#39;</code><ul>
<li><code>echo &quot;$response&quot; | jq .</code> # Get the key (e.g. <code>content</code>, <code>&#39;.data.content[].name&#39;</code>)</li>
<li><code>echo &quot;$response&quot; | jq --raw-output &#39;.content&#39;</code> # Replace <code>.content</code> with the desired key for filtering</li>
</ul>
</li>
<li><em><strong>Notes</strong></em><ul>
<li><code>.[].url</code><ul>
<li><code>.[]</code> # Iterate over each object</li>
</ul>
</li>
<li><em><strong>Notes</strong></em><ul>
<li><code>.data.content[] | select(.is_dir == false) | &quot;\(.name | @uri)?sign=\(.sign)&quot;</code><ul>
<li><code>select(.is_dir == false)</code> # Filter items where <code>is_dir</code> is <code>false</code></li>
<li><code>&quot;\()&quot;</code> # Embed the value of a field or expression inside a string</li>
<li><code>@uri</code> # Uniform resource identifier (Encode a string)</li>
</ul>
</li>
<li>Navigate to the <code>name</code> field within each object in the <code>content</code> array inside the <code>data</code> object, extract each <code>name</code> value<ul>
<li><code>.data.content[].name</code> # Navigate to the <code>name</code> field within each object in the <code>content</code> array inside the <code>data</code> object, extract each <code>name</code> value<ul>
<li><code>.data</code> # Access the <code>data</code> key in the JSON object</li>
<li><code>.content</code> # Access the <code>content</code> array</li>
<li><code>[]</code> # Iterate over each element of the <code>content</code> array</li>
Expand Down Expand Up @@ -3770,7 +3828,7 @@
}
</code></pre>
<ul>
<li><code>jq -r &#39;.data.content[].name&#39;</code><pre><code>001 music
<li><code>jq --raw-output &#39;.data.content[].name&#39;</code><pre><code>001 music
002 music
</code></pre>
</li>
Expand Down Expand Up @@ -6313,10 +6371,21 @@
<li>URL (<code>data:text/html;charset=utf-8,&lt;script&gt;document.write(encodeURIComponent(JSON.stringify(Shortcut Input,null,2)))&lt;/script&gt;</code>) - URL Encode (Decode, URL) # Beautify JSON format, <a href="https://libreddit.nohost.network/r/shortcuts/comments/gqq43h/dictionaryjson_pretty_print/">https://libreddit.nohost.network/r/shortcuts/comments/gqq43h/dictionaryjson_pretty_print/</a></li>
<li>Select Photos - Set Variable (Image, Photos) - Put File (Image) - Text (convert Image.<strong>File Extension</strong> -channel RGB -negate Output file name.png) - Execute Command (Text) - Get File (Output file name.png) # Invert image using a-Shell, <a href="https://libreddit.nohost.network/r/shortcuts/comments/1cdhddj/open_in_vim_via_ashell_then_save_in_original/l1fk0e2">https://libreddit.nohost.network/r/shortcuts/comments/1cdhddj/open_in_vim_via_ashell_then_save_in_original/l1fk0e2</a></li>
<li>Text (comment) - If (Text, is, Comment) - Nothing # Comment some actions, <a href="https://libreddit.nohost.network/r/shortcuts/comments/prkg46/does_anybody_want_the_ability_to_comment_out/hdkig89">https://libreddit.nohost.network/r/shortcuts/comments/prkg46/does_anybody_want_the_ability_to_comment_out/hdkig89</a></li>
<li>Get Dictionary from Input (Contents of URL) - Get Dictionary Value (Value, data.content, Dictionary) - Repeat with Each (Dictionary Value) - Text (Repeat Item (Type: Dictionary; Key: name)) # Get a list of all file names from the API (JSON format), <a href="https://medium.com/@richardmoult75/parsing-json-api-lists-with-shortcuts-20df08aedf09">https://medium.com/@richardmoult75/parsing-json-api-lists-with-shortcuts-20df08aedf09</a></li>
<li>Get a list of all file names from the API (JSON format)<pre><code>- Get Dictionary from Input (Contents of URL)
- Get Dictionary Value (Value, data.content, Dictionary)
- Repeat with Each (Dictionary Value)
- Text (Repeat Item (Type: Dictionary; Key: name))
- https://medium.com/@richardmoult75/parsing-json-api-lists-with-shortcuts-20df08aedf09
</code></pre>
</li>
<li>Get Time Between Dates (Current Date, 00:00, Minutes) - Calculate (1440, +, Time Between Dates) - Show Result (Calculation Result) # How many minutes are left today?, <a href="https://libreddit.tux.pizza/r/shortcuts/comments/uh862o/trying_to_make_a_program_that_tells_me_how_many/i74iy1h/">https://libreddit.tux.pizza/r/shortcuts/comments/uh862o/trying_to_make_a_program_that_tells_me_how_many/i74iy1h/</a></li>
<li>Convert Image (Shortcut Input, PNG) - Save to Photo Album (Converted Image, Recents) # Convert PDFs (Captured long screen) to PNGs, <a href="https://libreddit.tux.pizza/r/ios/comments/epz3wf/how_to_save_a_full_screen_screenshot_as_image_and/femykyb">https://libreddit.tux.pizza/r/ios/comments/epz3wf/how_to_save_a_full_screen_screenshot_as_image_and/femykyb</a></li>
<li>Get File from Folder (VLC, audioBook.txt) - <strong>Split Text</strong> (File, New Lines) - Get Item from List (Random Item, Split Text) # Get each line of a file before playing audiobook randomly, <a href="https://libreddit.tux.pizza/r/shortcuts/comments/ma5b8z/last_line_of_file/">https://libreddit.tux.pizza/r/shortcuts/comments/ma5b8z/last_line_of_file/</a></li>
<li>Get each line of a file before playing audiobook randomly<pre><code>- Get File from Folder (VLC, audioBook.txt)
- Split Text (File, New Lines)
- Get Item from List (Random Item, Split Text)
- https://libreddit.tux.pizza/r/shortcuts/comments/ma5b8z/last_line_of_file/
</code></pre>
</li>
<li>Get Weather Forecast (Daily, Current Location) - Get Details of Weather Conditions (Sunrise Time, Weather Conditions) - <strong>Get Item from List</strong> (Item at Index, 2, Sunrise Time) - Create Alarm (Item from List, Get Up, Disable &#39;Show When Run&#39;) - Adjust Date (Subtract, 510, minutes, Item from List) - Create Alarm (Adjusted Date, Go To Bed, Disable &#39;Show When Run&#39;) # Adjust 8-hour sleep time based on sunrise time, <a href="https://old.reddit.com/r/shortcuts/comments/r7yezo/automation_8_hours_before_sunrise/hn42v2l/">https://old.reddit.com/r/shortcuts/comments/r7yezo/automation_8_hours_before_sunrise/hn42v2l/</a></li>
<li>The add icon - Add Action - Get Network Details (Cellular, Radio Technology) - if (Network Details, Does not have any value) - ... # Get state of airplane mode to save battery while sleeping, <a href="https://snoo.habedieeh.re/r/shortcuts/comments/11cnaf7/comment/ja4tl51">https://snoo.habedieeh.re/r/shortcuts/comments/11cnaf7/comment/ja4tl51</a></li>
<li>The add icon - Add Action - Adjust Date - Set Variable - ... # To play yesterday&#39;s CCTV News, <a href="https://libreddit.freedit.eu/r/shortcuts/comments/ioiigu/comment/g4e1snd">https://libreddit.freedit.eu/r/shortcuts/comments/ioiigu/comment/g4e1snd</a></li>
Expand Down
26 changes: 26 additions & 0 deletions journals/2024-09-23.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
- #### Set up a profile
- Typing SVG
```
![Typing SVG](https://readme-typing-svg.demolab.com/?lines=Hello%20there%2C%20I'm%20yaoniplan%20%F0%9F%91%8B)
```
- `&font=Fira%20Code`
- Remember to encode the string
- Skill icons
```
![skills](https://skillicons.dev/icons?i=arch,bash)
```
- `bash` # Replace it with other icon id
- `&perline=14`
- Repo cards
```
[![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=yaoniplan&repo=note)](https://github.com/yaoniplan/note)
```
- `&theme=dark`
- `&show_owner=true`
- ***Notes***
- Becuase to highlight my skills and experience.
- ***References***
- https://github.com/anuraghazra/github-readme-stats#themes
- https://github.com/tandpfun/skill-icons#example
- https://github.com/DenverCoder1/readme-typing-svg#-quick-setup
- ---
28 changes: 14 additions & 14 deletions pages/animationAndComic.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,19 @@
- 大叔新人冒险者被最强小队拼死锻炼后无敌了 S01E11
- 元尊 S01E26
- 靠废柴技能状态异常成为最强的我将蹂躏一切 S01E11
- 陆地键仙 S01E40 animation
- 金吾卫之风起金陵 S01E16
- 小市民系列 S01E08
- 擅长逃跑的少主殿下 S01E09
- 幻宠师 - 16
- 杀手寓言 - 21
- 永生 - S01E12.S02E12.S03E16.S04E07
- 散修之王 - 26 0849
- 隐世宗门掌教 52
- 诛仙 - 52
- 剑域风云 - S01E40.S02E52.S03E94
- 凡人修仙传 - 118
- 仙逆 - 53
- 陆地键仙 S01E49
- 小市民系列 S01E10
- 擅长逃跑的少主殿下 S01E11
- 杀手寓言 - 21 animation
- 永生 - S01E12.S02E12.S03E16.S04E09
- 散修之王 - 29
- 剑域风云 - S01E40.S02E52.S03E98
- 凡人修仙传 - 120
- 仙逆 - 55
- learnC - 16 0714
- A brief history - 13
- top10ModelsOfDeepThinking # 08
- Shrouding the Heavens / 遮天 - 73
- Shrouding the Heavens / 遮天 - 75
- 武神主宰 - 192/471
- Against the Sky Supreme / 逆天至尊 - 339

Expand Down Expand Up @@ -242,6 +238,10 @@
- guard(end)

### Animation
- 诛仙 - S01E26.S02E26
- 幻宠师 - S01E16
- 隐世宗门掌教 S01E52
- 金吾卫之风起金陵 S01E16
- 2.5次元的诱惑 S01E11 11:59 # Target audience may be people who like cosplay
- 风云变2024 S01E17 0354 # Target audience may be 13 or 14 years old
- 我会招架一切 反误会的世界最强想成为冒险者 S01E12
Expand Down

0 comments on commit b14a95b

Please sign in to comment.