Skip to content

Instantly share code, notes, and snippets.

@wastu01
wastu01 / hugo-auto-deoply.yml
Last active October 10, 2024 11:50 — forked from lisez/hugo-auto-deoply.yml
如何使用 Github Actions 自動部署 Hugo
# link: https://sujingjhong.com/posts/how-to-deploy-hugo-automatically-with-github-actions/
# author: lisez <mm4324@gmail.com>
# 參照原作著提供的流程並修改成自己適用版本
name: Deploy Hugo site to Pages
on:
push:
branches:
- main
workflow_dispatch:
jobs:
{
"台北市": {
"中正區": "100",
"大同區": "103",
"中山區": "104",
"松山區": "105",
"大安區": "106",
"萬華區": "108",
"信義區": "110",
"士林區": "111",

148 Programming Questions

The following is a list of all the programming questions that I had solved through middle school and high school.

I programmed these questions in Java, but with slight modifications, these can also be done in Python or any other language. These are meant to improve your concepts and build a programming logic, and thereby strengthen your foundations.

These were lying in a .docx file on my system. I have compiled them into a more readable and widely accepted format. Some formatting issues might still be present, which I intend to fix as I find them. On the same note, if any question does not make sense, feel free to post a comment and I will cross-check with the .docx file.

@wastu01
wastu01 / com.autorun.launchctl.plist
Created March 13, 2022 05:40
Mac-開機自動執行指令-Creating Launch Daemons and Agents
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<!-- # 載入任務
launchctl load ~/Library/LaunchAgents/com.larry.launchctl.plist
# 移除任務
launchctl unload ~/Library/LaunchAgents/com.larry.launchctl.plist
# 手動執行任務
@wastu01
wastu01 / 取得辨識手寫數字訓練資料.md
Last active October 2, 2024 04:02
人工智慧深度學習
@wastu01
wastu01 / media.css
Created December 6, 2019 11:51
RWD 基本語法
@media screen and (min-width:481px){
#div03 {
 width: calc((100% - 10px)/2);
 height: 300px;
float: left;
}
#div05 {
 clear: both;
}
#div04 {
@wastu01
wastu01 / intro.html
Created December 6, 2019 09:32
RWD 基本語法
<div id="maindiv">
 <div id="div01">1</div>
 <div id="div02">2</div>
 <div id="div03">3</div>
 <div id="div04">4</div>
 <div id="div05">5</div>
 </div>

電路板相關知識

工具包

| 名詞 | 用途 | 備註 |

@wastu01
wastu01 / game.js
Last active April 12, 2019 17:36
按鈕競賽遊戲
var button;
/*宣告按鈕*/
boardReady({board 'Smart', url: '172.20.10.6'}, function (board) {
/*smart 用websucket 連線*/
board.systemReset();
board.samplingInterval = 50;
button = getButton(board, 4);
/*上拉按鈕開關=4*/
var btnGameNpcShow_ = document.getElementById("npcshow"),