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
| NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); | |
| NSString *documentsDirectory = [paths objectAtIndex:0]; | |
| NSString *filePath = [documentsDirectory stringByAppendingPathComponent:FILE_NAME]; | |
| myArray = [NSArray arrayWithContentsOfFile:filePath]; |
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
| #define SYSTEM_VERSION_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame) | |
| #define SYSTEM_VERSION_GREATER_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending) | |
| #define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending) | |
| #define SYSTEM_VERSION_LESS_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending) | |
| #define SYSTEM_VERSION_LESS_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending) |
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
| (function () { | |
| var FORMAT_LABEL={'5':'FLV 240p','18':'MP4 360p','22':'MP4 720p','34':'FLV 360p','35':'FLV 480p','37':'MP4 1080p','38':'MP4 4K','43':'WebM 360p','44':'WebM 480p','45':'WebM 720p','46':'WebM 1080p','135':'MP4 480p - no audio','137':'MP4 1080p - no audio','138':'MP4 4K - no audio','139':'M4A 48kbps - audio','140':'M4A 128kbps - audio','141':'M4A 256kbps - audio','264':'MP4 1080p - no audio'}; | |
| var FORMAT_TYPE={'5':'flv','18':'mp4','22':'mp4','34':'flv','35':'flv','37':'mp4','38':'mp4','43':'webm','44':'webm','45':'webm','46':'webm','135':'mp4','137':'mp4','138':'mp4','139':'m4a','140':'m4a','141':'m4a','264':'mp4'}; | |
| var FORMAT_ORDER=['5','18','34','43','35','135','44','22','45','37','46','38','139','140','141']; | |
| var FORMAT_RULE={'flv':'max','mp4':'all','webm':'none','m4a':'max'}; | |
| // all=display all versions, max=only highest quality version, none=no version | |
| // the default settings show all MP4 videos, the highest quality FLV and no WebM | |
| var SHOW_DASH_FORMATS=false; | |
| var BUTTON_TEX |
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
| NSString *input = responseObject[@"entries"][0][@"content"]; | |
| NSString *convertedString = [input mutableCopy]; | |
| CFStringRef transform = CFSTR("Any-Hex/Java"); | |
| CFStringTransform((__bridge CFMutableStringRef)convertedString, NULL, transform, YES); | |
| NSLog(@"convertedString: %@", convertedString); |
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
| [Adblock Plus 2.6.14] | |
| ! Thai Ads List | |
| ! generated on 11/26/13 09:50:00 GMT+7 | |
| jokergameth.com##li[class="threadbit dot hot"] | |
| soccersuck.com##div[style="margin: 0px 0px 2px 10px;"] | |
| soccersuck.com##div[style="margin:2px 0px 0px 2px;"] | |
| soccersuck.com##div[style="width:470px;height:250px;"] | |
| soccersuck.com##div[style="margin:5px 0px 0px 0px;float:left;"] | |
| soccersuck.com##div[class*="adv_A"] | |
| soccersuck.com##div[class*="advD"] |
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
| - - - - - - - - - - - - - - - - - - - - - - - - | |
| API | |
| - - - - - - - - - - - - - - - - - - - - - - - - | |
| 1.get session: http://sansiriapp.sansiri.com/homecare/MK_Complain/getSession.aspx | |
| เป็นแบบ GET | |
| 2.http://sansiriapp.sansiri.com/homecare/(S(%@))/MK_Complain/submithomecare.aspx , %@ คือ session id จากข้อ 1 | |
| เป็น POST และ Multipart Form Data สำหรับแนบรูปด้วย | |
| parameter | |
| @"name": @"Test", |
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
| #include <iostream> | |
| using namespace std; | |
| int main() | |
| { | |
| int time = 0; | |
| int temperature = 0; | |
| int bucketHeight = 40; //(H) from picture | |
| float velocity = 0; |
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
| #include <iostream> | |
| using namespace::std; | |
| int main() | |
| { | |
| int inputMoney = 0; | |
| int moneyCard = 0; | |
| int moneyChanged = 0; | |
| cout << "Please insert money: "; |
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
| --[[Facilities and Services]]-- | |
| Transport Service | |
| - - - - - - - - - - - - - - - | |
| Bug | |
| - - - - - - | |
| 1. หน้า Summary แสดงชื่อ คนขับ เบอร์โทร และปลายทาง ไม่ถูกต้อง ลองเปิดเทียบกับ PostMan หรือ iPod ดูครับ | |
| 2. เมื่อเลือกเวลา Start จาก Picker แล้ว End Time ไม่เปลี่ยนไปตาม ปกติมันต้องบวกเพิ่มไปตาม Start Time ครับ | |
| - - - - - - | |
| Additional |
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
| 1. Job ที่มีสถานะเป็น Pending จะต้องไม่มีหัวข้อ Contact ใน Detail | |
| 2. ใน List ของ HomeCare ส่วน Detail มันล้นมาชนวันที่ ลองดูที่โครงการ Via Botani | |
| 3. ใน Detail ของ HomeCare ให้ใส่ Place Holder ของภาพไว้ด้วยตลอด แม้จะไม่มีภาพแนบก็ตาม (ภาพจะส่งให้ใน Facebook นะครับ) | |
| 4. ใน Detail ของ HomeCare ให้จัด Alignment ของภาพให้เป็น Center |