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
javascript:(function()%7B%24('.socialtwitter_message_action').click()%7D)() |
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 | |
$selected = ' selected="selected"'; | |
?> | |
<select name="state" id="state" class="form-control"> | |
<option value=""<?php if(!isset($contact['state']) || empty($contact['state']))echo $selected; ?> disabled>State</option> | |
<option value="AL"<?php if($contact['state'] == 'AL')echo $selected; ?>>Alabama</option> | |
<option value="AK"<?php if($contact['state'] == 'AK')echo $selected; ?>>Alaska</option> |
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 | |
// Updates all YOURLS' URL Page Titles | |
// 1) Change the database connection details below. | |
// 2) Update page titles from command line with: php -f update-url-titles.php | |
$db_host = 'localhost'; | |
$db_name = 'database_name'; | |
$db_user = 'username'; |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<meta charset="utf-8"> | |
<title>Test Multiple File Upload POST Request</title> | |
<meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=1"> | |
<form method="POST" enctype="multipart/form-data"> | |
<!--<input type=file name="files[]" multiple>--> | |
<input type="file" name="uploads[]" multiple="multiple" accept="image/*"> | |
<input type=submit value=Upload> |
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 stringContainsOnlyZeros($s){ | |
return (is_numeric($s) && (int)$s===0); | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<h2>Original CSS</h2> | |
<style style="display: block; white-space: pre; font-family: monospace"> | |
h2 { margin:0; } |
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
function clearAllTweets(){ | |
$('.socialtwitter_message_action').each(function(i) { | |
$(this).click(); | |
$(this).remove(); | |
}); | |
} | |
var xx; | |
xx = setInterval(function(){ | |
if($('.socialtwitter_message_action').length<=0){ | |
clearInterval(xx); |
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 personHeightOptions(){ | |
$itotal = 95; $r = ''; | |
for($foot=7;$foot>=3;$foot--){ | |
for($inches=11;$inches>=0;$inches--){ | |
if($inches==0){ | |
$r .= "<option value='$itotal'> $foot' 0\" </option>"; | |
}else{ | |
$r .= "<option value='$itotal'> $foot' $inches\" </option>"; |
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 | |
ini_set('max_execution_time', 0); | |
header( 'Content-type: text/html; charset=utf-8' ); // Stream output | |
echo '<div id="o"></div> | |
<script> function u(m){var e = document.getElementById("o");e.innerHTML=m;} </script>'; | |
$startTime = time(); | |
define('DB_HOST','localhost'); | |
define('DB_NAME','mytestdb'); | |
define('DB_USER','username'); |
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 | |
// Random time delay before next execution. | |
// Stores the next time in a file. | |
// Time is read from this file and compared against current time. | |
// If time has passed, perform another random delay between 1-59 seconds before execution. | |
$timeFile = 'nexttime.txt'; | |
// $timeFile = dirname(__FILE__).'/nexttime.txt'; // Use this line for when running from CRON. | |
$minDelayMins = 1; | |
$maxDelayMins = 5; |