- Android 4.3
- CPU: Intel® Atom™ Z2560 1.6 GHz 雙核心
- Memory: 1GB
- Micro SIM
- 4G LTE 700/800/900/1800/2600
- Wi-Fi: 802.11 a/b/g/n
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
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# | |
# agnoster's Theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for ZSH | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://gist.github.com/1595572). | |
# |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Information</key> | |
<dict> | |
<key>Description</key> | |
<string>Map Rails ActiveSupport timezones to iOS readable timezone IDs.</string> | |
<key>Version</key> | |
<string>1.0</string> |
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
#pragma mark - ISBN Logic | |
- (BOOL)checkISBN:(NSString *)ISBN error:(NSError * __autoreleasing *)error | |
{ | |
if (ISBN.length != 10 || ISBN.length != 13) { | |
NSInteger checkSum = 0; | |
NSInteger length = ISBN.length; | |
if (length == 10) { |
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
NSStringEncoding big5 = CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingBig5_HKSCS_1999); | |
NSString *string = [[NSString alloc] initWithData:data encoding:big5]; | |
NSData *UTF8Data = [string dataUsingEncoding:NSUTF8StringEncoding]; | |
[string release]; |
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
module ProductsHelper | |
def render_product_grid (products) | |
@result = " " | |
products.each do |product, index| | |
@result = @result + render_product_item(product) | |
end |
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
<td> | |
<a href="" class="btn btn-xs <%= (order.process_state == "shipped" || order.process_state == "shipping" ||order.process_state == "order_placed" || order.process_state == "paid")? "btn-success" : "btn-default"%>" >已下訂</a> | |
<i class="glyphicon glyphicon-chevron-right"></i> | |
<a href="" class="btn btn-xs <%= (order.process_state == "shipped" || order.process_state == "shipping" || order.process_state == "paid")? "btn-success" : "btn-default"%>">已付款</a> | |
<i class="glyphicon glyphicon-chevron-right"></i> | |
<a href="" class="btn btn-xs <%= (order.process_state == "shipped" || order.process_state == "shipping")? "btn-success" : "btn-default"%>">出貨</a> | |
<i class="glyphicon glyphicon-chevron-right"></i> | |
<a href="" class="btn btn-xs <%= (order.process_state == "shipped")? "btn-success" : "btn-default"%>">已到貨</a> | |
</td> |
- no fast forward:
git merge --no-ff
### Regular Usage - stage the unstaged files, deleted filed included:git add -u
- unstage a file:
git reset [filename]
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
{ | |
DPIHeight = 72; | |
DPIWidth = 72; | |
Orientation = 6; | |
"{Exif}" = { | |
ApertureValue = "2.27500704749987"; | |
BrightnessValue = "3.137031630662469"; | |
ColorSpace = 1; | |
DateTimeDigitized = "2014:05:08 13:57:14"; | |
DateTimeOriginal = "2014:05:08 13:57:14"; |