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
// The basics: | |
// - Write your own NSURLProtocol subclass and register it. | |
// - Override the 5 required methods | |
// - Kick off download or cache fetch during |startLoading| | |
// - Update self.client with progress/completion/failure notifications. | |
// UIWebView will download requests concurrently via NSURLProtocol. | |
// If you use the typical NSURLCache hook to download content, you're | |
// stuck with serial downloads. |
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
using System; | |
using System.Net; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Documents; | |
using System.Windows.Ink; | |
using System.Windows.Input; | |
using System.Windows.Media; | |
using System.Windows.Media.Animation; | |
using System.Windows.Shapes; |
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
#include <iostream> | |
using std::cout; | |
using std::cerr; | |
using std::endl; | |
#include <string> | |
using std::string; | |
#include "cryptlib.h" | |
using CryptoPP::Exception; |
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
/** | |
* 使同域的iframe宽度撑满其所在容器,并且高度自适应其内容 | |
* | |
* @param {Element} iframe . | |
*/ | |
function autoFitIframe(iframe) { | |
var doc = iframe.contentDocument || iframe.contentWindow.document; | |
// 设置iframe宽度 | |
iframe.style.width = '100%'; |
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
- (void)setExtraCellLineHidden: (UITableView *)tableView | |
{ | |
UIView *view =[ [UIView alloc]init]; | |
view.backgroundColor = [UIColor clearColor]; | |
[tableView setTableFooterView:view]; | |
[view release]; | |
} |
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
1、 三角函数 | |
double sin (double);正弦 | |
double cos (double);余弦 | |
double tan (double);正切 | |
2 、反三角函数 | |
double asin (double); 结果介于[-PI/2, PI/2] | |
double acos (double); 结果介于[0, PI] | |
double atan (double); 反正切(主值), 结果介于[-PI/2, PI/2] | |
double atan2 (double, double); 反正切(整圆值), 结果介于[-PI, PI] | |
3 、双曲三角函数 |
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
// | |
// NSURL+ZXURL.h | |
// ZXTools | |
// | |
// Created by zhangxi on 13-6-21. | |
// Copyright (c) 2013年 张玺. All rights reserved. | |
// | |
/* | |
demo |