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
// | |
// // | |
// // | |
// CommonListViewController.h | |
// bitmedia | |
// | |
// Created by meng qian on 14-1-22. | |
// Copyright (c) 2014年 thinktube. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
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
// Instead of using delegation for passing the data, consider using NSNotificationCenter to communicate between your view controllers in this situation. | |
// In your first view controller you will register to listen for a notification: | |
- (void)viewDidLoad | |
{ | |
[[NSNotificationCenter defaultCenter] addObserver:self | |
selector:@selector(handleFourthViewSubmit:) | |
name:@"fourthViewSubmit" | |
object:nil]; |
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
# xcode-build-bump.sh | |
# @desc Auto-increment the build number every time the project is run. | |
# @usage | |
# 1. Select: your Target in Xcode | |
# 2. Select: Build Phases Tab | |
# 3. Select: Add Build Phase -> Add Run Script | |
# 4. Paste code below in to new "Run Script" section | |
# 5. Drag the "Run Script" below "Link Binaries With Libraries" | |
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.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
cityList = [ | |
{key: "610100", label:"西安", daLabel:"西安市",region:"华南"}, | |
{key: "130100", label:"石家庄", daLabel:"石家庄市",region:"华南"}, | |
{key: "350200", label:"厦门", daLabel:"厦门市",region:"华南"}, | |
{key: "410100", label:"郑州", daLabel:"郑州市",region:"华南"}, | |
{key: "440600", label:"佛山", daLabel:"佛山市",region:"华南"}, | |
{key: "350100", label:"福州", daLabel:"福州市",region:"华南"}, | |
{key: "440100", label:"广州", daLabel:"广州市",region:"华南"}, | |
{key: "230100", label:"哈尔滨", daLabel:"哈尔滨市",region:"华南"}, | |
{key: "110100", label:"北京", daLabel:"北京市",region:"华南"}, |
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":"mactive@gmail.com","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 ; |
OlderNewer