⌘T | 切換檔案 |
⌘⌃P | 切換專案 |
⌘R | 畫面切換到 method |
⌃G | 畫面切換到指定行數 |
⌘KB | 關閉 / 開啟側邊欄 |
⌘⇧P | 開啟指令控制面板 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n | |
zh-TW: | |
errors: | |
messages: | |
expired: "已經過期,請重新申請一個" | |
not_found: "找不到" | |
already_confirmed: "已經驗證,請直接登入" | |
not_locked: "被鎖定了" | |
not_saved: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintain in: https://gist.github.com/3877799 | |
# Resources: http://johnmcostaiii.net/2011/removing-mysql-osx-lion/ | |
sudo rm /usr/local/mysql | |
sudo rm -rf /usr/local/mysql* | |
sudo rm -rf /Library/StartupItems/MySQLCOM | |
sudo rm -rf /Library/PreferencePanes/My* | |
rm -rf ~/Library/PreferencePanes/My* | |
sudo rm -rf /Library/Receipts/mysql* | |
sudo rm -rf /Library/Receipts/MySQL* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Automaticlly install pptpd on Amazon EC2 Amazon Linux | |
# | |
# Ripped from http://blog.diahosting.com/linux-tutorial/pptpd/ | |
# pptpd source rpm packing by it's authors | |
# | |
# WARNING: | |
# first ms-dns setting to 172.16.0.23, 172.16.0.23 was showing on my | |
# /etc/resolv.conf, I'm not sure this is the same on all Amazon AWS zones. | |
# | |
# You need to adjust your "Security Groups" which you are using too. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :dev do | |
desc "Rebuild system" | |
task :build => ["tmp:clear", "log:clear", "db:drop", "db:create", "db:migrate"] | |
task :rebuild => [ "dev:build", "db:seed" ] | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 英文、數字、符號:[a-z0-9~!@#&;=_\$\%\^\*\-\+\,\.\/(\\)\?\:\'\"\[\]\(\)] | |
// 中文:\u4e00-\u9fa5 | |
// 日文:\u3040-\u30FF | |
var string = "中文內容" | |
string.match(/[\u4e00-\u9fa5]+/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run (input) | |
tell application "Google Chrome" | |
set theURL to URL of active tab of first window | |
set theTitle to title of active tab of first window | |
set theData to theTitle & " " & theURL & " #「" & input & "」" as string | |
end tell | |
activate application "Tweetbot" | |
tell application "System Events" to tell process "Tweetbot" | |
click menu item "New Tweet" of menu 1 of menu bar item "Tweet" of menu bar 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.app = angular.module('myApp', []); |
OlderNewer