Original transcript: http://allisonrandal.com/2012/04/15/open-source-enlightenment/
這幾年來,我慢慢覺得,我們參與開源社群,就像是在一條道路上並肩而行:這不僅讓我們成為更好的程式設計者,也讓我們通過與人合作,而成為更好的人。
您可以將它想成一條修行之道,讓身而為人的我們能夠不斷成長。接下來,我想談談我對開源世界的個人觀點,希望能與您分享。
首先,人是一切開源專案的核心。程式碼是很重要,但最核心的永遠是人。
using System; | |
namespace Test | |
{ | |
class NullTest | |
{ | |
static int? GetNullableInt() | |
{ | |
return null; | |
} |
private IEnumerable<TreeNode> getAllFileTreeNode(TreeNodeCollection nodes) | |
{ | |
foreach (TreeNode f in nodes) | |
{ | |
if (f.Nodes.Count > 0) | |
{ | |
foreach (TreeNode subNode in getAllFileTreeNode(f.Nodes)) | |
yield return subNode; | |
} | |
yield return f; |
#include <stdio.h> | |
void printString(char *string) | |
{ | |
int i; | |
for (i = 0; string[i] != '\0' ; i++) { | |
printf("%c",string[i]); | |
} | |
} |
using System; | |
using System.Collections.Generic; | |
using System.Collections; | |
namespace Serializable | |
{ | |
[Serializable] | |
public class CollectionT<T> : IList, ICollection, IEnumerable<T> | |
{ | |
private ArrayList list; |
#include <stdio.h> | |
template <class LType> | |
class Node | |
{ | |
public: | |
LType data; | |
Node<LType>* pret; | |
Node<LType>* next; | |
Node(const LType &, Node<LType>* , Node<LType>*); |
- (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]; |
#!/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/
這幾年來,我慢慢覺得,我們參與開源社群,就像是在一條道路上並肩而行:這不僅讓我們成為更好的程式設計者,也讓我們通過與人合作,而成為更好的人。
您可以將它想成一條修行之道,讓身而為人的我們能夠不斷成長。接下來,我想談談我對開源世界的個人觀點,希望能與您分享。
首先,人是一切開源專案的核心。程式碼是很重要,但最核心的永遠是人。
# use tab for auto complite | |
import rlcompleter, readline | |
readline.parse_and_bind('tab: complete') |
#!/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 |