Using git
Lab1 Using gitA. Intro to version control SystemsVersion control systems can track the history of code revisions, from current state of the code all the way back until it was first tracked.
Git is one tool that allow us version control. Git has excellent documentation.
Git is ditributed version control system
As opppsite centralized version control system. This means that every developer’s computer stores the entire history(including all old versions) of the entire project!
We call the entire hi ...
HTML table
HTML Table
Add cell padding \ Add border SpacingCell padding specifies the spcae between the cell content and its borders.
If you do not specify a padding, the table cells will be displayed without padding.
Border Spacing specfies the space between the cells.
123456th, td{ padding: 15px;}table { border-spacing: 5px;}
Left-align HeadingsBy default, table headings are bold and centered.
To left-align the table headings, using the CSS text-align property;
123th { te ...
CSS Selector
CSS SelectorsCSS selectors are used to “find” (or select) the HTML elements you want to style.
element SelectorThe element selector selects HTML elements based on the element name.
1234p { text-align: center; color: red;}
The CSS id SelectorTo select an element with a specific id, write a hash (#) character, followed by the id of the element.
1234#para1 { text-align: center; color: red;}
The CSS class SelectorTo select elements with a specific class, write a period (.) ...
Static modifier
Static modifierAs mentioned on last post. Static is a non-access modifier.
For this section, we’ll explore more about static modifier.
Recall that a static method is invoked through its class name, instead of through an object of that class.
Not only can methods be static, but variables can be static as well. We declare static class members using the static modifier.
Let’s examine the implications of static variables and methods closely.
Static variable
A static variable, which is sometimes ...
Visibility Modifier
Visibility ModifierYou may have seen public keyword everywhere throughout every programming program.
The public keyword is a modifier. Besides public we also have private,** protected, they all are **access modifier. There is also another type called non-access modifier(like static, final, abstract)
This section will talk about the Java modifier
What is the modifier?
Different kinds of modifier and their functionality.
What is a modifier?The definition of Access and Non-access is different:
...
A Simple Guide to Markdown
I built my own website using the Hexo framework this week, which supports markdown to write posts. As a complete newbie programmer, I have never heard of Markdown. So I simply made a summary of what is Markdown, and I would like to share it with you. If there are any inaccuracies, you are welcome to correct them:)
CONTENTS1. What’s Markdown?2. Why Markdown?3. How To Use Markdown?(Tools, Syntax)
What’s Markdown?
Markdown is a plain text lightweight markup language created by John Gruber in 2004 ...
什么是Markdown?
我这周使用hexo框架搭建好了博客,这个框架支持markdown来写文档。作为完全编程小白的我,从来没听说过Markdown。所以就简单的查阅了一下资料, 并做出了本篇总结, 和大家一起分享。如果有不准确的地方,欢迎大家来纠正。
本篇目录1. Markdown简介2. 为什么使用要markdown?3. 如何使用Markdown?(编辑工具,语法)
Markdown简介
Markdown是由John Gruber在2004年创作的一种纯文本轻量级标记语言
轻量级体现在:
格式简单。
纯文本的形式有着跨平台的特性,更适合我们的网络传播。
轻量级的文档更能灵活的转换成重量级的文档 (如PDF/Tex/HTML)
简单的说, Markdown就是一门用来编辑我们的文档的编程语言。
我们平时编辑的文档包含了两部分 文字内容+格式
文字就是我们输入的文本。
格式就是,我们的排版,被标记的标题,我们加粗的字体,等等。
文字内容+格式的调整 能带给读者更好的阅读体验,进行有逻辑的阅读。
当我们使用Markdown编辑出需要的文档之后,它 ...