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
UPDATE `lenovo_one`.`sm_category` | |
SET `is_upload` = '0',`is_audit_confirm` ='0',`audit_status` ='0' | |
WHERE `sm_category`.`cat_id` > 1; | |
TRUNCATE TABLE `sm_city`; | |
TRUNCATE TABLE `sm_city_audit`; | |
TRUNCATE TABLE `sm_city_ad`; | |
TRUNCATE TABLE `sm_city_temp`; | |
TRUNCATE TABLE `sm_city_gallery`; |
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 | |
function url_encode($string){ | |
return urlencode(utf8_encode($string)); | |
} | |
function url_decode($string){ | |
return utf8_decode(urldecode($string)); | |
} | |
?> |
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
public void MyFunction{ | |
HttpClient httpclient = new DefaultHttpClient(); | |
//你的URL | |
HttpPost httppost = new HttpPost("http://www.eoeandroid.com/post_datas.php"); | |
try { | |
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2); | |
//Your DATA | |
nameValuePairs.add(new BasicNameValuePair("id", "12345")); | |
nameValuePairs.add(new BasicNameValuePair("stringdata", "eoeAndroid.com is Cool!")); |
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
{"success":true,"data":{"user_id":"24","user_ticket":"1-18","avatar":"","firstname":"m","lastname":"acti","name":"mactive","enname":"mactive","email":"[email protected]","company_ticket":"1","logined":1343301090,"telephone":"","cellphone":"","created":"1343228570","updated":"1343228570"}} |
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
/* upload-popup */ | |
.upload-popup-all {position: absolute;width:281px;padding: 10px;border:1px solid #959ba5;background-color: #eef0f3;} | |
.upload-popup-all .describe {float:left;font-size:13px;line-height:123%;color:rgb(101,101,101);text-shadow:0px 1px 0px rgba(255,255,255,0.5);} | |
.upload-popup-all .details {float: right; color: #3e9de3;text-decoration: underline;} | |
.upload-popup-all .schedule {height: 14px;width:280px;margin-top: 3px;position: relative;background:url(../images/upload-fffbg.png) no-repeat;/*overflow:hidden;*/} | |
.upload-popup-all .schedule-bg {height: 11px;width:100%;position: absolute;bottom:1px;border:1px solid #3e9de3;background-color: #6dbef2;} | |
.upload-popup-all .schedule-com-bg {height: 11px;width:100%;position: absolute;border:1px solid #70b05c;background-color: #ace17d;} | |
.upload-popup-all ul {max-height:131px;margin-top: 15px;margin-bottom: 10px;border: 1px solid #b2b9bd;overflow: auto;} | |
.upload-popup-all li:last-child {margin-bottom: 0;} | |
.upload-popup-list {height:25px;width:100px; text-ind |
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
/* | |
* countPerLine 每行个数 | |
* qWidth 象限宽度 qHeight 象限高度 | |
* sHeihgt 象限间隔 | |
* x1,y1 左上角 x2,y2 右上角 | |
*/ | |
File.prototype.drawQuadrant = function( countPerLine, qWidth, qHeight, sHeight){ | |
var self = this; | |
countPerLine = countPerLine ? countPerLine : 4 ; | |
qWidth = qWidth ? qWidth : 150 ; |
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
/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/ |
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
cell.selectionStyle = UITableViewCellSelectionStyleNone; | |
//设置了成了 StyleNone 之后 | |
cell.selectedBackgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"cell_bg_highlighted.png"]]; | |
//不起作用 |
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
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackOpaque animated:NO]; | |
[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"navigationBar_bg.png"] forBarMetrics:UIBarMetricsDefault]; | |
[[UINavigationBar appearance] setTintColor:[UIColor colorWithRed:121/255 green:123/255 blue:126/255 alpha:1.0] ]; | |
[[UIBarButtonItem appearance] setTintColor:RGBACOLOR(55, 61, 70, 1)]; |
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
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
application.applicationSupportsShakeToEdit = YES; | |
} | |
shakeViewController.m | |
-(BOOL)canBecomeFirstResponder { | |
return YES; | |
} | |
-(void)viewDidAppear:(BOOL)animated { |
OlderNewer