Git Product home page Git Product logo

cd2019's People

Contributors

mdecourse avatar scrum-1 avatar scrum-2 avatar

Watchers

 avatar  avatar

cd2019's Issues

同時置換字串中的多種特定內容

搜尋過程, 以"python replace different string simultaneously" 作為關鍵字, 參考 https://stackoverflow.com/questions/6116978/how-to-replace-multiple-substrings-of-a-string/6117042 中所提供的方法, 可以同時將 config/content.htm 中的 h 各往後推送一階.

import re

rep = {"h1": "h2", "h2": "h3", "h3": "h4"} # define desired replacements here

# use these three lines to do the replacement
rep = dict((re.escape(k), v) for k, v in rep.items())
pattern = re.compile("|".join(rep.keys()))

#text = pattern.sub(lambda m: rep[re.escape(m.group(0))], text)

result = pattern.sub(lambda m: rep[re.escape(m.group(0))], "<h1>test1</h1>test1<h2>test2</h2>test2<h3>test3</h3>test3")
print(result)

考試時間截止前, 各組員必須進入課程自評與互評表單處, 提供個人所完成的網站連結, 並對自己與同組學員進行具體評分.

具有版次的雲端電腦輔助機械協同設計與產品的動態功能模擬, 是本課程所強調的重點, 希望各位學員能夠在協同產品設計實習課程中了解, 產品開發過程中若每一位成員都能具備掌握各工具的開發主導權, 將可讓每一項協同設計任務更具彈性, 無論是 2D/3D 零組件設計繪圖, 或隨後的動態模擬系統都值得各位爾後更進一步深入了解.

本課程將根據各位所提供的 Github 倉儲歷程、自評與互評, 以及期末協同考試過程中的表現進行評分.

祝大家暑假愉快!

利用 command line 處理 pull request

基本概念為, 以 pull request 所要合併的舊資料主體 (這裡為 master) 為基準, 建立一個暫時分支, 然後以 git pull 從 pull request 的新版本倉儲, 拉下資料版本, 這時 git 會檢查兩個版本的差異, 並判定能否自動合併.

若前述兩個分支內容無法自動合併, 則必須手動合併 (在 CMSimfly 動態模式下編輯後轉為靜態內容, 或以各自的 學號_reveal.leo 或 學號_pelican.leo 處理可能的衝突, 完成後, 設法將暫時分支與 master 分支合併後, 進行 master 的改版.

Step 1: From your project repository, check out a new branch and test the changes.

根據 master 內容, 建立一個 scrum-2-master branch

git checkout -b scrum-2-master master

拉回 pull request 的來源

git pull https://github.com/scrum-2/pr1.git master

處理合併後以 git add . 認所有的變更

Step 2: Merge the changes and update on GitHub.

遷出 master 分支

git checkout master

執行暫存分之 scrum-2-master 與 master 的合併
The --no-ff flag prevents git merge from executing a "fast-forward" if it detects that your current HEAD is an ancestor of the commit you're trying to merge. A fast-forward is when, instead of constructing a merge commit, git just moves your branch pointer to point at the incoming commit.

git merge --no-ff scrum-2-master

git commit - m "solved scrum-2-master pull request"

git push origin master

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.