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
# apt-get install python-software-properties | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
Package python-software-properties is not available, but is referred to by another package. | |
This may mean that the package is missing, has been obsoleted, or | |
is only available from another source | |
However the following packages replace it: | |
software-properties-common |
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
<?php | |
function test($max) { | |
for ($i = 1; $i <= $max; $i++) { | |
if ($i <= 1) { | |
continue; | |
} | |
if ($i == 2) { | |
print $i . "\n"; | |
continue; | |
} |
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 json_encode_jp($array) { | |
return preg_replace_callback( | |
'/\\\\u([0-9a-zA-Z]{4})/', | |
function ($matches) { | |
return mb_convert_encoding(pack('H*',$matches[1]),'UTF-8','UTF-16'); | |
}, | |
json_encode($array) | |
); | |
} |