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
<a href="javascript:void(window.open('https://www.sfbuy.com/account/register'));">test</a> |
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
/* Based on Twitter Bootstrap style http://twitter.github.com/bootstrap/ */ | |
.prettyprint .com { color: #93a1a1; } | |
.prettyprint .lit { color: #195f91; } | |
.prettyprint .pun, .prettyprint .opn, .prettyprint .clo { color: #93a1a1; } | |
.prettyprint .fun { color: #dc322f; } | |
.prettyprint .str, .prettyprint .atv { color: #D14; } | |
.prettyprint .kwd, .prettyprint .linenums .tag { color: #1e347b; } | |
.prettyprint .typ, .prettyprint .atn, .prettyprint .dec, .prettyprint .var { color: teal; } | |
.prettyprint .pln { color: #48484c; } |
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
sudo dtrace -n 'syscall::open*:entry { printf("%s %s",execname,copyinstr(arg0)); |
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
var prefix = (/mozilla/.test(navigator.userAgent.toLowerCase()) && | |
!/webkit/.test(navigator.userAgent.toLowerCase())) ? '-moz-' : | |
(/webkit/.test(navigator.userAgent.toLowerCase())) ? '-webkit-' : | |
(/msie/.test(navigator.userAgent.toLowerCase())) ? '-ms-' : | |
(/opera/.test(navigator.userAgent.toLowerCase())) ? '-o-' : ''; |
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
body { | |
font-family: Lucida Grande, Helvetica Neue, Helvetica, Arial, sans-serif; | |
text-align: center; | |
margin-top: 20px; | |
font-size: 14px; | |
color: #333; | |
} | |
span { | |
display: block; |
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
/* | |
<span>Loading</span> | |
<span class="l-1"></span> | |
<span class="l-2"></span> | |
<span class="l-3"></span> | |
<span class="l-4"></span> | |
<span class="l-5"></span> | |
<span class="l-6"></span> | |
*/ | |
body { |
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
html{ | |
-webkit-filter: grayscale(100%); | |
-moz-filter: grayscale(100%); | |
-ms-filter: grayscale(100%); | |
-o-filter: grayscale(100%); | |
filter: grayscale(100%); | |
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); | |
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=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
// 来自 http://se.360.cn/common/qihoo_ie6_tips.js | |
function is360se() { | |
var ret = false; | |
ua = navigator.userAgent.toLowerCase(); | |
if (ua.indexOf("chrome") > -1) { | |
ret = (ua.indexOf("qqbrowser") > -1 || ua.indexOf(" se ") > -1 || ua.indexOf("360ee") == -1) ? false : true | |
} | |
try { | |
if (window.external && window.external.twGetRunPath) { |
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 | |
/** | |
* Check if content is JSON | |
* | |
* @param string $content | |
* @return boolean | |
*/ | |
function w3_is_json($content) { | |
return json_decode($content) !== NULL; | |
} |
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 | |
class JSON_API { | |
function __construct() { | |
$this->query = new JSON_API_Query(); | |
$this->introspector = new JSON_API_Introspector(); | |
$this->response = new JSON_API_Response(); | |
add_action('template_redirect', array(&$this, 'template_redirect')); | |
add_action('admin_menu', array(&$this, 'admin_menu')); |