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
| // | |
| // UIActionSheet+Block.h | |
| // Created by manjun.han on 03/07/2013. | |
| // | |
| #import <UIKit/UIKit.h> | |
| typedef void(^ActionSheetTapBlock)(NSInteger tapIndex); | |
| @interface UIActionSheet (Block)< UIActionSheetDelegate > |
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
| // | |
| // NSObject+Id.h | |
| // Created by manjun.han on 07/07/2013. | |
| // | |
| #import <Foundation/Foundation.h> | |
| @interface NSObject (Id) | |
| @property (nonatomic) NSString *identifier; |
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
| // | |
| // UIView+GetViewController.h | |
| // Created by manjun.han on 12/07/2013. | |
| // | |
| #import <UIKit/UIKit.h> | |
| @interface UIView (GetViewController) | |
| - (UIViewController*)viewController; |
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
| // | |
| // UIImageView+Short.h | |
| // Created by manjun.han on 01/05/2013. | |
| // | |
| #import <UIKit/UIKit.h> | |
| @interface UIImageView (Short) | |
| + (UIImageView*)newWithImage:(UIImage*)image ; |
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
| // | |
| // YBMTextView.h | |
| // Created by manjun.han on 02/07/2013. | |
| // | |
| #import <UIKit/UIKit.h> | |
| @interface YBMTextView : UITextView | |
| @property(nonatomic) NSString *placeholder; |
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
| (function(opt_ns,opt_win){ | |
| var ALPHA_CHAR_CODES = [48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 65, 66, 67, 68, 69, 70]; | |
| // var uuidBuffer = []; | |
| var uuidFactory = { | |
| /** | |
| * @return {String} 新生成的uuid字符串 |
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
| (function(opt_ns , opt_win){ | |
| /** | |
| * reference : | |
| * https://developer.mozilla.org/en-US/docs/Web/API/DOMParser?redirectlocale=en-*US&redirectslug=DOM%2FDOMParser | |
| */ | |
| var ParserHelper = { | |
| /** | |
| * @return {String} 解析后的xml DOM node |
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
| package com.java.helper; | |
| import java.text.SimpleDateFormat; | |
| import java.util.Date; | |
| import net.sf.json.JSON; | |
| import net.sf.json.JSONSerializer; | |
| import net.sf.json.JsonConfig; | |
| import net.sf.json.processors.JsDateJsonValueProcessor; | |
| import net.sf.json.processors.JsonValueProcessor; |
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
| (function(opt_ns , opt_win){ | |
| /** | |
| * @date 2013.10.28 | |
| * reference: | |
| * http://zh.wikipedia.org/wiki/%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F | |
| * http://www.w3school.com.cn/js/jsref_replace.asp | |
| */ | |
| var escapeMapping = { | |
| '&': '&', | |
| '<': '<', |
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
| package com.mm.helper | |
| { | |
| /** | |
| * @author manjun.han | |
| * @date 2013.10.28 | |
| * @purpose HTML编码转义工具类 | |
| */ | |
| public class HTMLUtil | |
| { | |
| public static var escapeMapping:Object = { |