Skip to content

Instantly share code, notes, and snippets.

View tingtinghsu's full-sized avatar
🎯
Focusing

tingtinghsu tingtinghsu

🎯
Focusing
View GitHub Profile

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@tingtinghsu
tingtinghsu / index.html
Created August 22, 2020 08:41
Vue example
<div id="app">
{{ message }}
{{ age }}
</div>
<div class="posts">
{% for post in site.tags.jekyll %}
<h4 class="post-title">
<a href="{{ site.baseurl }}{{ post.url }}">
{{ post.title }}
</a>
</h4>
<small class="post-date">{{ post.date | date_to_string }}
</small>
{% endfor %}
<div class="tags">
{% assign sortedTags = page.tags | sort %}
<small>Tags: </small>
{% for tag in sortedTags %}
<span class="tag">
<small> <a href="{{ site.baseurl }}/tag/{{ tag }}">&nbsp;#{{ tag }}</a></small>
</span>&nbsp;
{% endfor %}
<br>
</div>
# Ruby經典面試題目 Q1. 什麼是類別?What is a Class?
# 類別(Class)能夠建立物件實體(Object instance),接收資料(data),並利用方法(method)和資料互動。
class TingisIronman
# 定義實體變數instance variable
def initialize
@message = "I'm going to write 30 articles in 30 days."
end
# 定義方法,讓實體變數產生變化 .gsub method可取代字串
# Ruby經典面試題目 Q1. 什麼是類別?What is a Class?
# 物件導向程式語言利用「可重複性」的概念,例如繼承(inheritance)來使軟體功能更易於維護。
class World
end
#Country繼承World
class Country < World
end