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
| - hosts: [web-server] | |
| vars: | |
| src_dir: '/usr/local/src' | |
| pcre_version: "8.33" | |
| pcre_name: "pcre-$pcre_version" | |
| pcre_dl_url: "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$pcre_name.tar.gz" | |
| httpd_version: "2.4.6" | |
| httpd_name: "httpd-$httpd_version" |
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
| import java.util.HashMap; | |
| import android.app.ProgressDialog; | |
| import com.android.volley.Request.Method; | |
| import com.android.volley.RequestQueue; | |
| import com.android.volley.VolleyError; | |
| /** | |
| * The Class VolleyGsonRequest. |
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
| package jp.i_dig.community.util; | |
| import com.google.gson.Gson; | |
| import com.google.gson.JsonSyntaxException; | |
| import com.android.volley.AuthFailureError; | |
| import com.android.volley.NetworkResponse; | |
| import com.android.volley.ParseError; | |
| import com.android.volley.Request; | |
| import com.android.volley.Response; |
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
| // ノーマル | |
| UIImage *imageNormal = [[UIImage imageNamed:@"normal"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 13, 0, 6)]; | |
| [[UIBarButtonItem appearance] setBackButtonBackgroundImage:imageNormal forState:UIControlStateNormal barMetrics:UIBarMetricsDefault]; | |
| // ハイライト | |
| UIImage *imageHighlight = [[UIImage imageNamed:@"highlight"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 13, 0, 6)]; | |
| [[UIBarButtonItem appearance] setBackButtonBackgroundImage:imageHighlight forState:UIControlStateHighlighted barMetrics:UIBarMetricsDefault]; |
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
| [self.view makeToast:@"メッセージ" duration:3.0 position:@"bottom"]; |
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
| UIApplication *application = [UIApplication sharedApplication]; | |
| // アクティブになったときに通知されるように登録する | |
| [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(hoge) name:UIApplicationDidBecomeActiveNotification object:application]; |
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
| - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath | |
| { | |
| cell.backgroundColor = UIColor colorWithHue:0.61 saturation:0.09 brightness:0.99 alpha:1.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
| - (void)drawTextInRect:(CGRect)rect | |
| { | |
| // top, left, bottom, right | |
| UIEdgeInsets insets = {0, 20, 0, 20}; | |
| return [super drawTextInRect:UIEdgeInsetsInsetRect(rect, insets)]; | |
| } |
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
| #import "UIImageView+WebCache.h" | |
| - (void)viewDidLoad | |
| { | |
| NSURL url = [NSURL URLWithString:@"http://hogehoge.com/hoge.png"]; | |
| [imageView setImageWithURL:url placeholderImage:nil options:SDWebImageCacheMemoryOnly]; | |
| } |
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 *path = [[NSBundle mainBundle] pathForResource:@"config" ofType:@"plist"]; | |
| NSDictionary *propDictionary = [NSDictionary dictionaryWithContentsOfFile:path]; | |
| NSArray *array = [NSArray arrayWithArray:[propDictionary objectForKey:@"key"]]; |