View book list
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
很小众,不好找,放在这里也算方便人了。 | |
Calculus An Intuitive and Physical Approach(Second Edition).epub | |
http://pan.baidu.com/s/1gdpcWoj | |
Working Memory and Neurodevelopmental disorders - Tracy Packiam Alloway.epub | |
http://pan.baidu.com/s/1c04ckmc | |
Schaum's Outline of College Physics - Frederick Bueche.epub | |
http://pan.baidu.com/s/1hqipuO8 |
View $http_response_header_parser.php
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 | |
/** | |
* Parse a set of HTTP headers | |
* | |
* @param array The php headers to be parsed | |
* @param [string] The name of the header to be retrieved | |
* @return A header value if a header is passed; | |
* An array with all the headers otherwise | |
*/ | |
function parseHeaders(array $headers, $header = null) { |
View zip.lib.php
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
sometimes we don't want to make any usage to the hardisk, when we just want to grab something from remote server, and make a Zip archive for download, and the offical php ZipArchive module don't support this till now, so here is a class to make this(from phpMyAdmin library). | |
Here is sample usage: | |
require_once('zip.lib.php'); | |
//create the zip | |
$zip = new zipfile(); | |
//add files to the zip, passing file contents, not actual files |
View define unicode string in PHP
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
echo json_decode('"\u30FB"'); |
View repr_equivalent_for_php_strings.php
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 | |
/** | |
* Created by PhpStorm. | |
* User: Youi | |
* Date: 7/25/2015 | |
* Time: 8:44 PM | |
*/ | |
$s = "\x21\xff thing\n\t\\字"; |
View mapper-0.74.map
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
hand_shutdown "key 290 mod1" | |
hand_capmouse "key 291 mod1" | |
hand_fullscr "key 13 mod2" | |
hand_pause "key 19 mod2" | |
hand_mapper "key 282 mod1" | |
hand_speedlock "key 293 mod2" | |
hand_recwave "key 287 mod1" | |
hand_caprawmidi "key 289 mod1 mod2" | |
hand_scrshot "key 286 mod1" | |
hand_video "key 286 mod1 mod2" |
View JavaScript falsy values
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
undefined | |
null | |
0 | |
-0 | |
NaN | |
''(empty string) |
View JavaScript handys
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
x+'' //convert to string | |
+x //convert to number | |
!!x //convert to boolean | |
//generate short random string | |
Math.random().toString(36).slice(-5) | |
//generate random ports | |
((Math.random() + 1) / 2 * 65535).toString().slice(0, 5) |
View get_redirect_location.php
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 get_redirect_url($url) { | |
stream_context_set_default(array( | |
'http' => array( | |
#'method' => 'HEAD', | |
'request_fulluri' => true, | |
'proxy' => 'tcp://127.0.0.1:1080' | |
) | |
)); |
View Windows CMD handing Commands
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
//task killer | |
taskkill [/s Computer] [/u Domain\User [/p Password]]] [/fi FilterName] [/pid ProcessID]|[/im ImageName] [/f][/t] |
OlderNewer