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
// | |
// cTableViewCell.h | |
// cTableView | |
// | |
// Created by 廖宗綸 on 2015/4/19. | |
// Copyright (c) 2015年 Joseph Liao. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
@interface cTableViewCell : UITableViewCell |
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: Android兩個下拉重整的方法 | |
tags: android, pulltorefresh | |
--- | |
**[<i class="icon-provider-github"></i> View on GitHub](https://github.com/iampaul83/Android-pull-to-refresh)** | |
<!--more--> | |
---------- |
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
--- | |
tags: Android, Wear, Notification | |
--- | |
> | |
[TOC] | |
*** | |
對Android Wear來說,Notification算是一個很重要的功能之一, | |
可以快速且明確地提供使用者資訊,當手持設備(手機或平板),與手錶連線時, |
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
--- | |
tags: Markdown, StackEdit | |
--- | |
>以下是我用在StackEdit編輯的Markdown文件 | |
> | |
* [請點我]用StackEdit開啟,並點右上角的 <i class="icon-pencil"></i> 複製這份文件! | |
![編輯按鈕][] | |
* 我用StackEdit發佈到Blogger的網誌 | |
1. [用StackEdit寫Markdown,並輸出至網誌!] | |
2. [Android兩個下拉重整的方法] |
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
#import <Foundation/Foundation.h> | |
NS_ASSUME_NONNULL_BEGIN | |
@interface Person : NSObject | |
@property (copy, readonly) NSString *firstName; | |
@property (copy, readonly) NSString *lastName; | |
-(instancetype)initWithFirstName:(NSString *)firstName lastName:(NSString *)lastName NS_DESIGNATED_INITIALIZER; |
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
UIViewAnimationOptions options = UIViewAnimationOptionAutoreverse | |
//1 << 4 | |
|UIViewAnimationOptionAllowUserInteraction | |
//1 << 1 | |
|UIViewAnimationOptionCurveLinear; | |
//3 << 16 | |
// option = 10000 | 10 | 1010000000000000000 | |
// = 1010000000000010010 (binary) | |
if ((options & UIViewAnimationOptionCurveLinear) != 0) { |
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
-(void)parseXML:(NSData *) data | |
{ | |
//文档开始(KissXML和GDataXML一样也是基于DOM的解析方式) | |
DDXMLDocument *xmlDoc = [[DDXMLDocument alloc] initWithData:data options:0 error:nil]; | |
DDXMLElement *root = [xmlDoc rootElement]; | |
NSString *status = [root elementForName:@"status"].stringValue; | |
NSString *next_page_token = [root elementForName:@"next_page_token"].stringValue; | |
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
<style> | |
body > div { | |
padding: 10px; | |
border-style: solid; | |
border-width: 1px; | |
border-color: black; | |
} | |
.array { | |
margin: 5px; | |
padding: 10px; |
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
<?php | |
echo "<table border='1'>"; | |
for ($n=1; $n <=52 ; $n++) { | |
$array[]=$n; | |
} | |
shuffle($array); | |
for ($i=1; $i <=4 ; $i++) { |
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
<?php | |
/** | |
* Created by iampaul83 | |
* Date: 7/26/15 | |
* Time: 09:16 | |
*/ | |
$db = new PDO("mysql:host=localhost;dbname=password", "root", "root" ); | |
//$username = $_POST["username"]; |
OlderNewer