Original transcript: http://allisonrandal.com/2012/04/15/open-source-enlightenment/
這幾年來,我慢慢覺得,我們參與開源社群,就像是在一條道路上並肩而行:這不僅讓我們成為更好的程式設計者,也讓我們通過與人合作,而成為更好的人。
您可以將它想成一條修行之道,讓身而為人的我們能夠不斷成長。接下來,我想談談我對開源世界的個人觀點,希望能與您分享。
首先,人是一切開源專案的核心。程式碼是很重要,但最核心的永遠是人。
<body style="color:#fff; font-family:Verdana, Geneva, sans-serif;"> | |
<h3 style="font-weight:bold; font-size:13px; border-bottom:solid 1px #eee; padding:2px 0;">名稱:測試投票</h3> | |
<p style="margin-bottom:8px; padding:5px 0;"> | |
宗旨:com'ono<br> | |
此次投票你可以投 <span id="remain-votes">2</span> 票。 | |
</p> | |
<div class="grid"> | |
<ul style="padding:0 0 0 5px; margin-bottom:8px;"> | |
<li><input name="" value="" type="checkbox"> a</li> | |
<li><input name="" value="" type="checkbox"> bcd</li> |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
Original transcript: http://allisonrandal.com/2012/04/15/open-source-enlightenment/
這幾年來,我慢慢覺得,我們參與開源社群,就像是在一條道路上並肩而行:這不僅讓我們成為更好的程式設計者,也讓我們通過與人合作,而成為更好的人。
您可以將它想成一條修行之道,讓身而為人的我們能夠不斷成長。接下來,我想談談我對開源世界的個人觀點,希望能與您分享。
首先,人是一切開源專案的核心。程式碼是很重要,但最核心的永遠是人。
# Home | |
桌子:IKEA GALANT http://www.ikea.com/tw/zh/catalog/products/S59885197/ | |
電腦:iMac 27" i5 8G ram | |
鍵盤: Filco 茶軸 | |
滑鼠:Magic Mouse | |
滑鼠墊:eZova | |
耳機: QC15 | |
椅子: Aeron |
# Terminal Progress Indicators. Four examples are included: percentage, | |
# spinner, progress bar, and combined. This script has been tested on | |
# Mac OS X 10.8 with Ruby 1.8.7, 1.9.1, 1.9.2, and 1.9.3 | |
class Spinner | |
include Enumerable | |
def each | |
loop do | |
yield '|' | |
yield '/' |
# Check if remote file exists | |
def remote_file_exists?(full_path) | |
'true' == capture("if [ -e #{full_path} ]; then echo 'true'; fi").strip | |
end | |
# Check if process is running | |
def remote_process_exists?(pid_file) | |
capture("ps -p $(cat #{pid_file}) ; true").strip.split("\n").size == 2 | |
end |
$VERBOSE = nil | |
require File.expand_path('../rooby', __FILE__) | |
Person = Rooby::Class.new 'Person' do | |
define :initialize do |name| | |
@name = name | |
end | |
define :name do |
sql = "select *, (select count(books.id) from books where books.authorsid=authors.id) as books_count from authors " | |
authors = Author.find_by_sql(sql) | |
authors.first.books_count |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |