Original transcript: http://allisonrandal.com/2012/04/15/open-source-enlightenment/
這幾年來,我慢慢覺得,我們參與開源社群,就像是在一條道路上並肩而行:這不僅讓我們成為更好的程式設計者,也讓我們通過與人合作,而成為更好的人。
您可以將它想成一條修行之道,讓身而為人的我們能夠不斷成長。接下來,我想談談我對開源世界的個人觀點,希望能與您分享。
首先,人是一切開源專案的核心。程式碼是很重要,但最核心的永遠是人。
# We won't worry about sending C-\ to any programs | |
# bind-key C-\ send-prefix | |
# hit C-\ twice to go to last window | |
bind-key C-\ last-window | |
bind-key b set-option status | |
# C-b is not acceptable, due to emacs, bash, and vim | |
unbind-key C-b | |
set -g prefix 'C-\' |
[core] | |
pager = less -R | |
[color] | |
ui = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
[color "diff"] | |
meta = yellow bold |
#!/usr/bin/python | |
import sys | |
if len(sys.argv) > 1: | |
file_name = sys.argv[1] | |
else: | |
print "no input file name" | |
exit() | |
from swf.movie import SWF |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# \brief Make XCode3 library to XCode.app | |
# \details This is only work on XCode 4.2+ | |
# \version 0.7 | |
# \date 2012 | |
# \author superbil | |
import os | |
import sys |
# use tab for auto complite | |
import rlcompleter, readline | |
readline.parse_and_bind('tab: complete') |
Original transcript: http://allisonrandal.com/2012/04/15/open-source-enlightenment/
這幾年來,我慢慢覺得,我們參與開源社群,就像是在一條道路上並肩而行:這不僅讓我們成為更好的程式設計者,也讓我們通過與人合作,而成為更好的人。
您可以將它想成一條修行之道,讓身而為人的我們能夠不斷成長。接下來,我想談談我對開源世界的個人觀點,希望能與您分享。
首先,人是一切開源專案的核心。程式碼是很重要,但最核心的永遠是人。
#!/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 | |
# |
- (GDataEntryContact *)uploadPhotoWithContactService:(GDataServiceGoogleContact *)contactService contact:(GDataEntryContact *)targetContact photoData:(NSData *)photoData | |
{ | |
GDataEntryBase *uploadPhotoEntry = [GDataEntryBase entry]; | |
// file path on iOS don't need | |
NSString *mimeType = [GDataUtilities MIMETypeForFileAtPath:nil | |
defaultMIMEType:@"image/*"]; | |
[uploadPhotoEntry setUploadMIMEType:mimeType]; | |
[uploadPhotoEntry setUploadData:photoData]; |
#include <stdio.h> | |
template <class LType> | |
class Node | |
{ | |
public: | |
LType data; | |
Node<LType>* pret; | |
Node<LType>* next; | |
Node(const LType &, Node<LType>* , Node<LType>*); |
using System; | |
using System.Collections.Generic; | |
using System.Collections; | |
namespace Serializable | |
{ | |
[Serializable] | |
public class CollectionT<T> : IList, ICollection, IEnumerable<T> | |
{ | |
private ArrayList list; |