-
github上你可以用别人的现成的代码 直接 git clone 即可了
-
然后你也想改代码或者贡献代码咋办?
This file contains hidden or 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
| Mapper.CreateMap<Design, DesignSubmitViewModel>() | |
| .ForMember(d => d.Tags, opt => opt.MapFrom(d => d.Tags.Aggregate("", (total, tag) => total + (tag.Name + ", ")).Trim(' ',','))); | |
| Mapper.CreateMap<DesignSubmitViewModel, Design>() | |
| .ForMember(d => d.Competition, opt => opt.Ignore()) | |
| .ForMember(d => d.Tags, opt => opt.MapFrom(d => d.Tags.Split(',').Select(name => new Tag() { Name = name.Trim() }))); |
This file contains hidden or 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
| 一,安裝簡體->繁體映射碼表:(該項目由opencc維護:http://code.google.com/p/opencc) | |
| 文件1:http://code.google.com/p/rimeime/source/browse/trunk/misc/opencc/data/simp_to_trad_characters.ocd | |
| 文件2:http://code.google.com/p/rimeime/source/browse/trunk/misc/opencc/data/simp_to_trad_phrases.ocd | |
| 安裝位置:共享資料目錄 | |
| 如:/Library/Input Methods/Squirrel.app/Contents/SharedSupport/opencc | |
| 二,添加opencc簡繁配置文件: | |
| 詳見:zhs2zht.ini | |
| 安裝位置:共享資料目錄 | |
| 如:/Library/Input Methods/Squirrel.app/Contents/SharedSupport/opencc |
This file contains hidden or 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
| # source: http://st-on-it.blogspot.com/2010/01/how-to-move-folders-between-git.html | |
| # First of all you need to have a clean clone of the source repository so we didn't screw the things up. | |
| git clone git://server.com/my-repo1.git | |
| # After that you need to do some preparations on the source repository, nuking all the entries except the folder you need to move. Use the following command | |
| git filter-branch --subdirectory-filter your_dir -- -- all | |
| # This will nuke all the other entries and their history, creating a clean git repository that contains only data and history from the directory you need. If you need to move several folders, you have to collect them in a single directory using the git mv command. |
Moved, see VIM Cheatsheet
This file contains hidden or 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
| <?php | |
| // GoogleVoice(EMAIL, PASSWORD) | |
| $gv = new GoogleVoice('[email protected]', 'password'); | |
| // Sends an SMS. send_sms(NUMBER, MESSAGE) | |
| echo $gv->send_sms('+15555555555', 'Example'); | |
| // Gets all the sms | |
| // get_sms() - returns all the sms | |
| // get_sms(true) - returns all the unread sms | |
| echo $gv->get_sms(); | |
NewerOlder