This file contains 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
def index | |
if params[:tag] | |
@posts = Post.order('updated_at desc').page(params[:page]).per(10).tagged_with(params[:tag]) | |
else | |
#@posts = Post.paginate(:per_page => 5 ,:page => params[:page],:order =>"updated_at DESC") | |
@posts = Post.order('updated_at desc').page(params[:page]).per(10) | |
respond_to do |format| | |
format.html | |
format.js | |
end |
This file contains 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
<message type="chat" to="886975310326@shareim" xmlns="jabber:client" from="886975310327@shareim/Mobile" id="9D23D097-DF32-47A6-803F-BED0FC6D1DA5"><body>TEST</body><request xmlns="urn:xmpp:receipts"/><bodyex xmlns="com:she:hamishare:bodyex" type="TEXT" dateTime="1363249212514"/></message> | |
<message type="chat" to="886975310326@shareim" xmlns="jabber:client" from="886975310327@shareim/Mobile" id="80AA5F53-9199-406F-AF1C-59CD907A79E8"><body>You SHOULD NOT see this string!</body><bodyex type="FREECALL" xmlns="com:she:hamishare:bodyex" callTime="00:00:00" dateTime="1363249237503" freeCallType="1"></bodyex></message> |
This file contains 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
- (BOOL)enterChatRoom:(NSString*)chatRoomJid{ | |
//這裡的chatRoomJID應該只有user | |
/* | |
if(_xmppRoom){ | |
[self quitChatRoom:nil]; | |
}*/ | |
XMPPJID *jid=[XMPPJID jidWithString:chatRoomJid]; | |
/* | |
_xmppRoom=[[HSXMPPRoom alloc] initWithRoomStorage:[XMPPRoomCoreDataStorage sharedInstance] jid:jid]; | |
[_xmppRoom addDelegate:_xmppRoom delegateQueue:dispatch_get_main_queue()]; |
This file contains 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" standalone="no"?> | |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="en" lang="en"> | |
<head> | |
<meta name="viewport" content="width=768, height=1024" /> | |
<title></title> | |
</head> | |
<body> | |
<video width="380" height="283" controls > |
This file contains 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
# This function will break up words for us. | |
def break_words(stuff) | |
words = stuff.split(' ') | |
return words | |
end | |
# Sorts the words. | |
def sort_words(words) | |
return words.sort | |
end |
This file contains 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
# This function will break up words for us. | |
def break_words(stuff) | |
words = stuff.split(' ') | |
return words | |
end | |
# Sorts the words. | |
def sort_words(words) | |
return words.sort | |
end |
This file contains 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
#印正方形 | |
# print upper bound of square | |
# print middle part of square | |
# print bottom bound of square |
This file contains 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
{ | |
"version":{ | |
"number":"2.0.1", | |
"mandatory":false, | |
"install_url":"https://itunes.apple.com/tw/app/eztable-jing-xuan-can-ting/id725489275?l=zh&mt=8" | |
}, | |
"min-version-number":2.0.1 | |
} |
This file contains 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
[ | |
{ | |
"title" : "event_1", | |
"targetUrl": { "en" : "http://google.com" , | |
"zh_TW" : "http://google.com" }, | |
"banner1x": { "en" : "http://placehold.it/640x210/f04e2f/ffffff/" , | |
"zh_TW" : "http://placehold.it/640x210/f04e2f/ffffff/" }, | |
"banner2x": { "en" : "http://placehold.it/640x210/f04e2f/ffffff/" , | |
"zh_TW" : "http://placehold.it/640x210/f04e2f/ffffff/" }, | |
"banner3x": { "en" : "http://placehold.it/750x210/f04e2f/ffffff/" , |
This file contains 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
ld: warning: ignoring file /Users/boska/projects/SDK_TPNP/IOS Demo/iphone/P2Pdemo/libPPPP_API.a, missing required architecture i386 in file /Users/boska/projects/SDK_TPNP/IOS Demo/iphone/P2Pdemo/libPPPP_API.a (2 slices) | |
ld: warning: ignoring file /Users/boska/projects/SDK_TPNP/IOS Demo/iphone/P2Pdemo/libavcodec.a, file was built for archive which is not the architecture being linked (i386): /Users/boska/projects/SDK_TPNP/IOS Demo/iphone/P2Pdemo/libavcodec.a | |
ld: warning: ignoring file /Users/boska/projects/SDK_TPNP/IOS Demo/iphone/P2Pdemo/libavdevice.a, file was built for archive which is not the architecture being linked (i386): /Users/boska/projects/SDK_TPNP/IOS Demo/iphone/P2Pdemo/libavdevice.a | |
ld: warning: ignoring file /Users/boska/projects/SDK_TPNP/IOS Demo/iphone/P2Pdemo/libavfilter.a, file was built for archive which is not the architecture being linked (i386): /Users/boska/projects/SDK_TPNP/IOS Demo/iphone/P2Pdemo/libavfilter.a | |
ld: warning: ignoring file /Users/boska/projects/SDK_TPNP/IOS Dem |
OlderNewer