GithubHelp home page GithubHelp logo

wp110b's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

wp110b's Issues

期中作業:請繳交一份《程式專案+報告》!2022/6/17 24:00 截止繳交

最後提醒:

  1. 記得一定要寫姓名學號!
  2. 若非原創,要描述你修改了多少 (90%, 50%, 10%, 0%) ...
  3. 小心授權問題,建議採用 Creative Commons 的圖片,或是自行手繪或拍照!
  4. 務必標明是否為原創!

題目:

從以下主題中擇一撰寫《網頁專案+報告》,可以自製或研究他人專案

應該包含 HTML/CSS/JavaScript 三種技術都要用到,例如:

  1. 個人網站
  2. 網頁專案 (應用程式,例如購物介面)
  3. 平時練習比較好的範例

注意事項:

  1. 若你有使用外部資源,或者圖片,請一定要標示 來源或套件名稱。
  2. 若你的程式碼是修改自別人的,或者網路上的,也務必要聲明。
    • 我的程式是修改自 github 的 某某專案,網址為 ....
  3. 若你某個期末作業主要部分,完全沒有用別人的東西,也請你標示出來
  4. 應該寫一份報告,說明你的程式設計原理與使用方式,就像 github 專案中的 README.md 那樣

若沒有宣告『來源』,會被嚴重扣分 (完全自創就請宣告完全自創)

另外,關於授權

README.md 一開頭一定要聲明『程式的原創性或修改來源』,否則會嚴重扣分,例如:

  1. 本程式修改自某某 github 專案 ...
  2. 本程式完全是原創作品,沒有修改自任何來源,也沒有剪貼自其他程式作品。

有引用外部文章或圖片時,請注意應使用合法授權的資料!

例如引用維基百科,應採用創作共用 CC:BY-SA 授權!

維基百科:CC BY-SA 3.0協議文本

最常用的方式是在專案下加一個 LICENSE 檔案,像這樣

https://github.com/cccriscv/mini-riscv-os/blob/master/LICENSE

習題 7 -- 正規表達式練習

  1. 練習
> let text = "name:ccc age:52 weight:60"
undefined
> let re = /[0-9]+/g
undefined
> re
/[0-9]+/g
> text
"name:ccc age:52 weight:60"
> text.match(re)
[ "52", "60" ]
> let re2 = /[a-z]+/g
undefined
> text.match(re2)
[ "name", "ccc", "age", "weight" ]
> let re3 = /:([0-9a-zA-Z])+/g
undefined
> text.match(re3)
[ ":ccc", ":52", ":60" ]
> let re4 = /:([0-9a-zA-Z])+/
undefined
> text.match(re4)
[ ":ccc", "c" ]
> let re5 = /:([0-9a-zA-Z]+)/
undefined
> let re5 = /:([0-9a-zA-Z]+)/
undefined
> text.match(re5)
[ ":ccc", "ccc" ]
> let re5 = /:\w+)/
Uncaught SyntaxError: Invalid regular expression: /:\w+)/: Unmatched ')'
> let re5 = /:\w+/
undefined
> text.match(re5)
[ ":ccc" ]
> let re6 = /:\d+/
undefined
> let re6 = /:\d+/g
undefined
> text.match(re6)
[ ":52", ":60" ]
> let re7 = /:\D+/g
undefined
> text.match(re7)
[ ":ccc age:" ]
> let text = 'hello world , ccc , your email is [email protected] , how are you !'
undefined
> text
"hello world , ccc , your email is [email protected] , how are you !"
> let re = /\w+@[\w\.]+/g
undefined
> text.match(re)
[ "[email protected]" ]
> let text2 = text + '  abc    ccc@q  ... '
undefined
> text2
"hello world , ccc , your email is [email protected] , how are you !  abc    ccc@q  ... "
> text.match(re)
[ "[email protected]" ]
> text2.match(re)
[ "[email protected]", "ccc@q" ]
> let re = /\w+@\w+\.[\w\.]+/g
undefined
> text2.match(re)
[ "[email protected]" ]

期末作業:請繳交你對本課程的學習筆記! 2022/6/17 24:00 截止繳交

可以用 github, github wiki, hackmd, .... 或任何你想用的工具撰寫,最好能在網路上直接看到。

注意:

  1. 若你有使用外部資源,或者圖片,請一定要標示 來源或套件名稱。
  2. 若你的程式碼 (C/ASM) 是修改自別人的,或者網路上的,也務必要聲明。
    • 我的程式是修改自 github 的 某某專案,網址為 ....
  3. 若你某個期末作業主要部分 (例如是個 Compiler),完全沒有用別人的東西,也請你標示出來
  4. 應該寫一份報告,說明你的程式設計原理與使用方式,就像 github 專案中的 README.md 那樣

若沒有宣告『來源』,會被嚴重扣分 (完全自創就請宣告完全自創)

另外,關於授權

README.md 一開頭一定要聲明『程式的原創性或修改來源』,否則會嚴重扣分,例如:

  1. 本程式修改自某某 github 專案 ...
  2. 本程式完全是原創作品,沒有修改自任何來源,也沒有剪貼自其他程式作品。

有引用外部文章或圖片時,請注意應使用合法授權的資料!

例如引用維基百科,應採用創作共用 CC:BY-SA 授權!

維基百科:CC BY-SA 3.0協議文本

最常用的方式是在專案下加一個 LICENSE 檔案,像這樣

https://github.com/cccriscv/mini-riscv-os/blob/master/LICENSE

網頁設計 第 4 週 -- 簽到討論區

習題 5 -- 請完成下列 JavaScript 習題

  1. 請寫一個程式印出九九乘法表。
  2. 請寫一個函數計算 n! ,例如 10! 就是 10*9*8*....*1
  3. 請寫一個函數檢查某數是否為質數?
    • 範例: isPrime(17) => true
    • 範例: isPrime(21) => false
  4. 請將 a 到 b 之間無法被 3, 5, 7 整除的數字放到陣列中?
    • 範例: filter357(5,10) = [8]
    • 範例: filter357(5,15) = [8,11,13]
  5. 請算出某陣列的平均值?
    • 範例: mean([1,2,3,4,5]) => 3
  6. 寫一個程式做因數分解。
    • 範例:factor(45) => [3, 3, 5]
  7. 寫一個程式把矩陣轉置。
    • 範例:transpose([[1,2,3], [3,2,1]]) => [[1,3], [2,2], [3,1]]
  8. 請寫一個函數計算兩矩陣相加?
    • 範例: add([[1,2],[3,4]], [[1,1],[1,1]]) => [[2,3], [4,5]]
  9. 請用遞迴寫一個函數印出費氏數列的第 n 個
  10. (函數參數 callback) 請寫一個函數可以做任意函數的定積分
    • 範例: integral((x)=>x*x, 0, 1) => 0.333...
  11. (物件導向) 請寫一個有理數物件,包含 toString() 函數
    • 範例: var r1 = new Ratio(1,3); console.log(r1.toString()); 會印出 1/3
  12. (物件導向) 請擴充上一題,加入 add, sub 兩個函數
    • 範例: var r1 = new Ratio(1,3), r2 = new Ratio(2,4); var r3 = r1.add(r2); console.log(r3.toString()); 會印出 10/12
  13. (物件導向) 請擴充上一題,加入 mul, div 兩個函數
    • 範例: var r1 = new Ratio(1,3), r2 = new Ratio(2,4); var r3 = r1.mul(r2); console.log(r3.toString()); 會印出 2/12
  14. (物件導向) 請擴充上一題,加入 reduce 函數 (約分)
    • 範例: var r1 = new Ratio(6,9); console.log(r1.toString()); 會印出 2/3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.