Skip to content

Instantly share code, notes, and snippets.

Recommend Mac SoftWare

粗體為現在有安裝的軟體,一般則為已移除或是未安裝的軟體。

System

  • Alfred 2 - 熱鍵、Spotlight
  • coconutBattery - 電池記錄
  • iTerm - 比Terminal更好用的Console
  • Keka - 解壓縮軟體
  • TeamViewer - 遠端控制。
@pastleo
pastleo / 台中前端社群_小聚#2.md
Created May 19, 2014 16:25
台中前端社群_小聚#2_筆記

台中前端社群_小聚#2

原來要自我介紹

jQuery Validation

  • 後端必要地需要驗證,但前端需要分擔這份工作
  • 使用方法: documtent
  • 基本用法

$(".selector").validate({

@pastleo
pastleo / Preferances.sublime-settings
Created June 9, 2014 20:34
My Preference.sublime-settings
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/User/PastLeoFaviColor1.tmTheme",
"detect_indentation": true,
"draw_minimap_border": true,
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"font_size": 12,
"highlight_line": true,
@pastleo
pastleo / 中興資工招生影片程式碼.sh
Last active August 29, 2015 14:03
中興大學資訊工程學系2014招生影片內所使用的BASH程式碼
#!/bin/bash
process_bar()
{
for (( i = 0; i < 50; i++ )); do
printf "\r["
for (( j = 0; j < 50; j++ )); do
if [ "$i" -ge "$j" ]; then
printf "#"
else
printf " "
@pastleo
pastleo / COSCUP_2014.md
Last active August 29, 2015 14:04
COSCUP 2014 筆記記錄

COSCUP 2014

Hackfoldr

Day 1

  • 盡量在8:30左右到達會場
  • 09:10 — 10:00 : Maker 《自造世代》
  • 一大堆"硬體"開源人
@pastleo
pastleo / Create_GIF_using_commandline.md
Last active August 29, 2015 14:04
Create GIF using commandline

Create GIF using commandline

There is a super image converter for commandline: ImageMagick,it has a lot of image convertion tools. You can install it using brew,just brew install ImageMagick (if you are using mac with brew) ^_^

  1. First, I bet you must resize your imgs,here is the example
mogrify -resize 640x480 *.jpg
@pastleo
pastleo / abspath.sh
Created August 12, 2014 16:19
取得絕對路徑...大致有效啦
abspath(){
local result
if [[ "$1" =~ ^(/|~).*$ ]]; then
result="$1"
else
result="$(pwd)/$1"
fi
if [[ ! "$result" =~ ^.+/$ ]]; then
result="$result/"
fi

把 openSSH 的鑰匙轉換成 PUTTY 能用的鑰匙

以下以把 vagrant 的 insecure_private_key 為例

1 2 3 4 5

@pastleo
pastleo / sync_fb_google_calendar.md
Last active August 29, 2015 14:07
同步 Facebook 活動至 Google 日曆

同步 Facebook 活動至 Google 日曆

Google 日曆提供了在多個平台同步日曆/行事曆的功能,在各個裝置上都可以清楚看到、管理你的日曆/行事曆

由於 Facebook 的盛行,很多人會使用 Facebook 的活動功能,再加上 Facebook 上面有你好友的生日行事曆,不知道是不是有人有想到如果能把 Facebook 行事曆同步到 Google 日曆該有多好,這樣一來需要手動增加行事曆的麻煩就更少囉。好消息是:其實 Facebook 有提供行事曆匯出/同步出去的功能,簡單幾個步驟按一按即可擁有此功能,心動不如馬上行動XDD!

  • 首先來到你的FB首頁,按下左方的活動:

1

@pastleo
pastleo / NchuMailToMyMail.md
Last active August 29, 2015 14:07
從興大信箱轉寄到你自己常用的信箱

設定興大信箱轉寄功能

許多學校的通知都會透過學校發給你的那個信箱 (像這樣 s123456789@mail.nchu.edu.tw)

但是他不是你常用的信箱嗎?叫他自動轉寄到你常用的信箱吧:

1

根據我的測試,系統似乎是在一天的某個時間進行轉寄,所以不會立馬收到,設定完成之後靜待幾天去看看是否真的有信件被轉寄吧,我測是有效的...