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 <stdio.h> | |
int main(void) { | |
int c; | |
while (c = getchar()) | |
{ | |
printf("%d 0x%02X\n", c, c); | |
} | |
return 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
/** | |
* Created by togu on 2013/07/25. | |
*/ | |
public class CommonDialogFragment extends DialogFragment { | |
private DialogListener listener = null; | |
public static CommonDialogFragment newInstance(String title, String message) { | |
return setCommonDialogFragment(0, title, message); | |
} |
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
/** | |
* Created by togu on 2013/07/23. | |
*/ | |
public class HogeActivity extends Activity { | |
EditText editText1; | |
EditText editText2; | |
Button bomb; | |
@Override |
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
/** | |
* Created by togu on 2013/07/23. | |
*/ | |
public class HogeActivity extends Activity { | |
EditText editText1; | |
EditText editText2; | |
Button bomb; | |
@Override |
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
/** | |
* Created by togu on 2013/07/23. | |
*/ | |
public class HogeActivity extends Activity { | |
EditText editText1; | |
EditText editText2; | |
Button bomb; | |
@Override |
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
/** | |
* Created by togu on 2013/07/23. | |
*/ | |
public class FormActivity extends Activity implements OnItemSelectedListener { | |
private Spinner birthdayPermission; | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); |
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
- (NSDate *)toLocalTime | |
{ | |
NSTimeZone *tz = [NSTimeZone defaultTimeZone]; | |
NSInteger seconds = [tz secondsFromGMTForDate:self]; | |
return [NSDate dateWithTimeInterval:seconds sinceDate:self]; | |
} | |
- (NSDate *)toGlobalTime | |
{ | |
NSTimeZone *tz = [NSTimeZone defaultTimeZone]; |
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 <UIKit/UIKit.h> | |
@interface UIAlertView (UIAlertView_BlocksExtension) | |
typedef void (^UIAlertViewCallback_t)(NSInteger buttonIndex); | |
- (id)initWithTitle:(NSString *)title | |
message:(NSString *)message | |
callback:(UIAlertViewCallback_t)callback | |
cancelButtonTitle:(NSString *)cancelButtonTitle | |
otherButtonTitles:(NSString *)otherButtonTitles, ...; |
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
if ([UiUtil isNotLessiOS7]) { | |
//UIApplicationBackgroundFetchIntervalMinimum or NN seconds | |
[[UIApplication sharedApplication] setMinimumBackgroundFetchInterval:600]; | |
} | |
- (void)updateAppIconBadge | |
{ | |
LOG(@">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>updateAppIconBadge<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"); | |
// 設定する前に、設定済みの通知をキャンセルする |
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
alias ls='ls --color' | |
export LV='-Ou8 -c' | |
export LESS='-R' | |
bindkey -e | |
bindkey '^R' history-incremental-pattern-search-backward | |
bindkey '^S' history-incremental-pattern-search-forward | |
HISTFILE=~/.zsh_history |