Skip to content

Instantly share code, notes, and snippets.

View peerasak-u's full-sized avatar

Peerasak Unsakon peerasak-u

View GitHub Profile
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
[self preloadKeyboard];
return YES;
}
- (void)preloadKeyboard
{
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Subinsurance Premium Calculator" />
<meta charset="utf-8">
<title>Subinsurance Premium Calculator</title>
</head>
<body>
<div id="result"></div>
</body>
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Subinsurance Premium Calculator" />
<meta charset="utf-8">
<title>Subinsurance Premium Calculator</title>
</head>
<body>
<div id="result"></div>
</body>
- (void)didMoveToParentViewController:(UIViewController *)parent
{
if (parent == nil) {
NSLog(@"Back");
}
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell" forIndexPath:indexPath];
[cell.imageView setImage:[UIImage imageNamed:@"radiobutton-unchecked"]];
[cell.imageView setHighlightedImage:[UIImage imageNamed:@"radiobutton-checked"]];
[cell.label setText:_dataArray[indexPath.row][@"text"]];
return cell;
cell.imageView.image = [UIImage imageNamed:@"normal_image.png"];
cell.imageView.highlightedImage = [UIImage imageNamed:@"highlighted_image.png"];
_logoImage.frame = CGRectMake(130.0, 240.0, _logoImage.frame.size.width, _logoImage.frame.size.heigth);
[UIView animateWithDuration:0.37 delay:0.0 options:UIViewAnimationOptionCurveEaseInOut animations:^{
_logoImage.frame = CGRectMake(130.0, 90.0, _logoImage.frame.size.width, _logoImage.frame.size.heigth);
} completion:^(BOOL finished) {
[self showLoginForm];
1. Job ที่มีสถานะเป็น Pending จะต้องไม่มีหัวข้อ Contact ใน Detail
2. ใน List ของ HomeCare ส่วน Detail มันล้นมาชนวันที่ ลองดูที่โครงการ Via Botani
3. ใน Detail ของ HomeCare ให้ใส่ Place Holder ของภาพไว้ด้วยตลอด แม้จะไม่มีภาพแนบก็ตาม (ภาพจะส่งให้ใน Facebook นะครับ)
4. ใน Detail ของ HomeCare ให้จัด Alignment ของภาพให้เป็น Center
@peerasak-u
peerasak-u / Facility Bug
Created December 8, 2013 05:15
The New Home Service For Android Issue List
--[[Facilities and Services]]--
Transport Service
- - - - - - - - - - - - - - -
Bug
- - - - - -
1. หน้า Summary แสดงชื่อ คนขับ เบอร์โทร และปลายทาง ไม่ถูกต้อง ลองเปิดเทียบกับ PostMan หรือ iPod ดูครับ
2. เมื่อเลือกเวลา Start จาก Picker แล้ว End Time ไม่เปลี่ยนไปตาม ปกติมันต้องบวกเพิ่มไปตาม Start Time ครับ
- - - - - -
Additional
@peerasak-u
peerasak-u / MoneyCard.cpp
Created December 1, 2013 18:54
188110-midterm-2011-2 ข้อ 5
#include <iostream>
using namespace::std;
int main()
{
int inputMoney = 0;
int moneyCard = 0;
int moneyChanged = 0;
cout << "Please insert money: ";