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
@interface ProjectsRequest : AFHTTPClient | |
+ (ProjectsRequest *)sharedProjectsRequest; | |
@end | |
@implementation ProjectsRequest | |
+ (ProjectsRequest *)sharedProjectsRequest | |
{ | |
static ProjectsRequest *_sharedADLoginRequest = nil; | |
static dispatch_once_t onceToken; | |
dispatch_once(&onceToken, ^{ |
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 java.util.Timer; | |
class MyTimerTask1 extends java.util.TimerTask { | |
@Override | |
public void run() { | |
// TODO Auto-generated method stub | |
System.out.println("start"); | |
} | |
} |
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
self.imageView.frame = (CGRect){ .origin = CGPointZero, | |
.size = self.photo.size }; |
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
- (IBAction)btnClick:(id)sender { | |
CABasicAnimation* rotationAnimation; | |
rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"]; | |
rotationAnimation.toValue = [NSNumber numberWithFloat: M_PI * 2.0 ]; | |
rotationAnimation.duration = 1.0; | |
rotationAnimation.cumulative = YES; | |
rotationAnimation.repeatCount = 1;//HUGE_VALF; | |
[self.pic_fresh.layer addAnimation:rotationAnimation forKey:@"rotationAnimation"]; | |
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
http://www.cnblogs.com/zcw-ios/articles/3340197.html |
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
index.jsp | |
----------------- | |
<html> | |
<body> | |
<form action="main.jsp" method="GET"> | |
First Name: <input type="text" name="first_name"> <br /> Last | |
Name: <input type="text" name="last_name" /> <input type="submit" | |
value="Submit" /> | |
</form> |
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
<%@ page import="java.io.*,java.util.*" %> | |
<html> | |
<head> | |
<title>Auto Refresh Header Example</title> | |
</head> | |
<body> | |
<center> | |
<h2>Auto Refresh Header Example</h2> | |
<% | |
// Set refresh, autoload time as 5 seconds |
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
<%@ page import="java.io.*,java.util.*" %> | |
<html> | |
<head> | |
<title>Applcation object in JSP</title> | |
</head> | |
<body> | |
<% | |
Integer hitsCount = | |
(Integer)application.getAttribute("hitCounter"); |
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
<%@ page import="java.io.*,java.util.*,java.sql.*"%> | |
<%@ page import="javax.servlet.http.*,javax.servlet.*" %> | |
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> | |
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%> | |
<html> | |
<head> | |
<title>SELECT Operation</title> | |
</head> | |
<body> |
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
<%@ page import="java.io.*,java.util.*,java.sql.*"%> | |
<%@ page import="javax.servlet.http.*,javax.servlet.*" %> | |
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> | |
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%> | |
<html> | |
<head> | |
<title>SELECT Operation</title> | |
</head> | |
<body> |
OlderNewer