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 do_var_dump($object) { | |
echo "<pre>"; | |
var_dump($object); | |
echo "</pre>"; | |
} | |
?> |
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
background-image: linear-gradient(to right, #333 10%, rgba(255, 255, 255, 0) 0%); | |
background-position: top; | |
background-size: 10px 1px; | |
background-repeat: repeat-x; |
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
0. App Name | |
a. 45 characters MAX | |
1. App Icon | |
a. 128x128 | |
b. Must be in PNG format | |
2. Screenshot Images | |
a. 1280x800 [OR] 640x400 | |
b. Max 5 | |
3. Promotional tile images, maximum one upload per size | |
a. 440x280 **Required** |
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
filter_var($string,FILTER_VALIDATE_REGEXP, array( "options" => array("regexp"=>"/^([a-zA-Z0-9]*-[a-zA-Z0-9]*){4}$/"))) |
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
var isMobile = { | |
Android: function() { | |
return navigator.userAgent.match(/Android/i); | |
}, | |
BlackBerry: function() { | |
return navigator.userAgent.match(/BlackBerry/i); | |
}, | |
iOS: function() { | |
return navigator.userAgent.match(/iPhone|iPad|iPod/i); | |
}, |
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 fetchUrl($uri,$method=false) { | |
$handle = curl_init(); | |
curl_setopt($handle, CURLOPT_URL, $uri); | |
curl_setopt($handle, CURLOPT_POST, $method); | |
curl_setopt($handle, CURLOPT_BINARYTRANSFER, false); | |
curl_setopt($handle, CURLOPT_HEADER, true); | |
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($handle, CURLOPT_CONNECTTIMEOUT, 10); | |
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
curl \ | |
-F 'requestType=sendMessage' \ | |
-F 'recipient=$recipientAddress' \ | |
-F 'secretPhrase=$password' \ | |
-F 'chain=ignis' \ | |
-F 'message=$publicMessage' \ | |
-F 'messageToEncryptIsText=true' \ | |
-F 'encryptedMessageIsPrunable=true' \ | |
-F 'referencedTransaction=2:dfe36cf9f8dff41f30f1cde92717ee6f1ac2c5342bba7d691b5e0b75a6bc5204' \ | |
-F 'feeNQT=0' \ |
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
$query = "DESCRIBE tablename"; | |
$result = $db->query($query); | |
while ($row => $result->fetch_array()) { | |
echo "{$row['Field']} - {$row['Type']}; | |
} |
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
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME}\.php -f | |
RewriteRule ^(.*)$ $1.php [NC,L] |
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 getMultiContents($url_list) | |
{ | |
$mh = curl_multi_init(); | |
$ch_list = array(); | |
foreach ($url_list as $url) { | |
$ch_list[$url] = curl_init($url); | |
curl_setopt($ch_list[$url], CURLOPT_RETURNTRANSFER, TRUE); | |
curl_setopt($ch_list[$url], CURLOPT_TIMEOUT, 1); |
OlderNewer