<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
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() }))); |
一,安裝簡體->繁體映射碼表:(該項目由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 |
# 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
<?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(); | |