Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am xdstack on github.
  • I am xdstack (https://keybase.io/xdstack) on keybase.
  • I have a public key whose fingerprint is 31A8 91B8 823A 9961 4E3A 782B D6BA DA53 31BC 5FA0

To claim this, I am signing this object:

<?php
namespace Pokus;
class Exception extends \Exception
{
}
function tttt($string)
{
try {
GET /WebObjects/MZStore.woa/wa/topContentsPageContentMatrixFragment?genreId=36&id=29099&popId=27&force10=true&page=1&sort=1 HTTP/1.1
Host: itunes.apple.com
X-Apple-Store-Front: 143465-19,12 ab:SKn801s1
If-Modified-Since: Sun, 29 Mar 2015 14:54:08 GMT
Accept-Encoding: gzip, deflate
Accept-Language: zh-cn, zh;q=0.75, en-us;q=0.50, en;q=0.25
Accept: */*
User-Agent: iTunes/10.7 (Macintosh; Intel Mac OS X 10.10.3) AppleWebKit/0600.5.6
Connection: keep-alive
Referer: https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewTop?id=29099&popId=27&genreId=36
@xdstack
xdstack / idfa.md
Last active August 29, 2015 14:15
推广对接IDFA查询接口文档

推广对接IDFA查询接口文档

为了保证推广效果,需要贵方提供一个查询接口,用来获取某一个IDFA是否下载过你们App。

##请求方式##

HTTP POST

##请求参数名称及说明##

@xdstack
xdstack / duiba-api
Last active August 29, 2015 14:11 — forked from xuhengfei/duiba-api
##兑换接口API
###话费兑换
请求地址:/charge/exchangePhonebill
输入参数:
appKey
timestamp 时间戳(北京时间,毫秒为单位),5分钟过期
@xdstack
xdstack / gist:30b0b23f990389ea34d7
Created August 7, 2014 12:57
Homebrew brew doctor result
➜ Homebrew brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:
tab2space
Homebrew brew install -v php55
==> Downloading http://www.php.net/get/php-5.5.15.tar.bz2/from/this/mirror
Already downloaded: /Library/Caches/Homebrew/php55-5.5.15
==> Verifying php55-5.5.15 checksum
tar xf /Library/Caches/Homebrew/php55-5.5.15
Error: undefined method `include' for #<BuildOptions:0x007f978315e1f0>
Please report this bug:
https://github.com/Homebrew/homebrew/wiki/troubleshooting
/usr/local/Library/Taps/homebrew/homebrew-php/Formula/php55.rb:35:in `install_args'
/usr/local/Library/Taps/homebrew/homebrew-php/Formula/abstract-php.rb:358:in `_install'
@xdstack
xdstack / 0_reuse_code.js
Created June 15, 2014 03:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<?php
class dict {
private $_dict;
function __construct() {
/** 设置字典库 */
$this->_dict = array(
'A' => array(59371,41648,50400,33157,41392,18661,47599),
'Ai' => array(19697,32178,35504,36856,20712,25068,28663,26608,29399,19381,17099,47497,30339,43240,54250,56459,45201,25005,57749,17131,36057,28596,49375,29162,55685,31713,27114,64665,19190,56536,37508,22145,59104,42373,18930,17311,30185,29599,54922,60552,35971,19670,27069,47505,56476,52365,63875,43184,17031,45460,45466,43440,32176,44464,57310,36230,41904,42672,42928,42416,42160,18330,22758,52719,58012,27797,45716,44208,44720,23788,45302,25559,49645,30387,51430,56208,24969,51680,44976,16588,46209,43696,43952,18334,57994,29916,51424,34439),
'An' => array(63223,39405,58764,17125,31621,34691,56712,18059,46512,33240,42376,22239,20462,39914,36586,64753,21940,18566,20963,29912,29649,37368,23685,26617,22193,47024,25589,19441,40169,36845,45488,29099,29640,37881,24205,61928,55010,17352,50928,36553,22468,30127,3
<!DOCTYPE html> <!-- HTML5 doctype 不区分大小写 -->
<html lang="zh-cmn-Hans-CN"> <!-- 更加标准的 lang 属性写法 http://zhi.hu/XyIa -->
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <!-- 优先使用IE最新版本和 Chrome -->
<!-- width=device-width 会导致 iPhone 5 添加到主屏后以 WebAPP 全屏模式打开页面时出现黑边 http://bigc.at/ios-webapp-viewport-meta.orz -->
<meta name ="viewport" content ="initial-scale=1.0, maximum-scale=3, minimum-scale=1, user-scalable=no">